Skip to content

[Bug]: circular import generated when using dynamic import and require #9597

@sapphi-red

Description

@sapphi-red

Reproduction link or steps

REPL

What is expected?

No error happens when executing dist/entry-0.js.

What is actually happening?

The following error happens when executing dist/entry-0.js:

TypeError: __exportAll is not a function

In other words, the cyclic import "entry-0 -> node0 -> entry-0" is not output.

System Info

REPL 1.0.3

Any additional comments?

This seemed to be working with 1.0.0.
Found at sapphi-red/zarara#25 (comment)

Metadata

Metadata

Type

Priority

None yet

Effort

None yet

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions