Skip to content

[Bug]: Import differences compared to rollup #6438

@lazka

Description

@lazka

Reproduction link or steps

I've read in some issues that rolldown has different behavior on purpose, so maybe this is not a bug at all. This is the only case I found in my codebase that has a different behavior so I thought I'd file it anyway.

What is expected?

The output to be the same for

import TypesenseInstantSearchAdapter from 'typesense-instantsearch-adapter';

console.log(TypesenseInstantSearchAdapter);

What is actually happening?

  • Rollup imports the default export
  • Rolldown imports the namespace

System Info

rolldown v1.0.0-beta.42, see the package.json for other versions.

Any additional comments?

No response

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationwontfixThis will not be worked on

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions