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
Is this a regression?
Yes (please specify version below)
Last Working Version
5.101.0
Additional Context

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.mjsActual Behavior
Imported function is undefined
Environment
Is this a regression?
Yes (please specify version below)
Last Working Version
5.101.0
Additional Context