Skip to content

[Bug]: Inlining dynamic imports broken with multiple entry points (beta.59 regression) #8027

@lazka

Description

@lazka

Reproduction link or steps

https://repl.rolldown.rs/#eNptj81uhCAUhV/lhg2aWDqzdTJ9hSZNd6ULo1hp9GIA+xPCuxdE7ExmEhbcn/Odcx3pSe2IVuPYqW9krcJefjBrYhdJfW9SkTYM5DQrbcH+zgIcvGxrz7OVCg146LWagGY55cgxIIyFBKpvJGdwHAEkzout4Y1OjUT2aWhFlR2Ejt/3iqOPJPGzmneib5YxIzkSX5G8nA/Y66vYnLBHMzRadGHEySkq9zpL/xtJu7n2C7Yx8vopyhQbQAu7aAT6OkgD4TWQ9Ps+Pa3po9V2WzbK5WXEgl4kpCULZ2BRuJUGvoTzUzZOMSK8DHcE+leAHNmBHR50y47E/wF/s6Ha

What is expected?

The dynamic import works as expected.

What is actually happening?

The dynamic import imports a module that doesn't have any exports after bundling.

dist/main.js:3
	func();
	^

TypeError: func is not a function
    at dist/main.js:3:2

System Info

rolldown: 1.0.0-rc.1

Any additional comments?

I suspect this is caused by #7742

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions