Skip to content

Regression: imported function is undefined when multi-entry; #20164

@ShenHongFei

Description

@ShenHongFei

Bug Description

When building multiple entries, the imported functions in the generated bundle are undefined.

[email protected] is the last working version; subsequent versions are incorrect.

Link to Minimal Reproduction and step to reproduce

https://github.com/ShenHongFei/webpack-bug

Expected Behavior

no error thrown when running node ./dist/bundle.mjs

Actual Behavior

Imported function is undefined

Environment

node: latest version

Is this a regression?

Yes (please specify version below)

Last Working Version

5.101.0

Additional Context

Image Image

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions