You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We expect an output of 2 chunks where the internal used module integer-math.js is bundled into math.js
Actual Behaviour
When treeshaking is active, Rollup creates an extra chunk for the internal module (integer-math.js) and references this chunk instead of the originally referenced module (math.js)
Rollup Version
3.21.0
Operating System (or Browser)
Chrome 112
Node Version (if applicable)
N/A
Link To Reproduction
https://rollupjs.org/repl/?version=3.21.0&shareable=JTdCJTIyZXhhbXBsZSUyMiUzQW51bGwlMkMlMjJtb2R1bGVzJTIyJTNBJTVCJTdCJTIyY29kZSUyMiUzQSUyMmltcG9ydCUyMCU3QiUyMGRvdWJsZSUyMCU3RCUyMGZyb20lMjAnLiUyRm1hdGguanMnJTNCJTVDbiU1Q25jb25zb2xlLmxvZyhkb3VibGUoNSkpJTNCJTIyJTJDJTIyaXNFbnRyeSUyMiUzQXRydWUlMkMlMjJuYW1lJTIyJTNBJTIybWFpbi5qcyUyMiU3RCUyQyU3QiUyMmNvZGUlMjIlM0ElMjJleHBvcnQlMjAlN0IlMjBkb3VibGUlMjAlN0QlMjBmcm9tJTIwJy4lMkZpbnRlZ2VyLW1hdGguanMnJTNCJTIyJTJDJTIyaXNFbnRyeSUyMiUzQXRydWUlMkMlMjJuYW1lJTIyJTNBJTIybWF0aC5qcyUyMiU3RCUyQyU3QiUyMmNvZGUlMjIlM0ElMjJleHBvcnQlMjBjb25zdCUyMGRvdWJsZSUyMCUzRCUyMHglMjAlM0QlM0UlMjB4JTIwKiUyMDIlM0IlMjIlMkMlMjJpc0VudHJ5JTIyJTNBZmFsc2UlMkMlMjJuYW1lJTIyJTNBJTIyaW50ZWdlci1tYXRoLmpzJTIyJTdEJTVEJTJDJTIyb3B0aW9ucyUyMiUzQSU3QiUyMm91dHB1dCUyMiUzQSU3QiUyMmZvcm1hdCUyMiUzQSUyMmVzJTIyJTdEJTJDJTIydHJlZXNoYWtlJTIyJTNBdHJ1ZSU3RCU3RA==
Expected Behaviour
We expect an output of 2 chunks where the internal used module
integer-math.jsis bundled intomath.jsActual Behaviour
When treeshaking is active, Rollup creates an extra chunk for the internal module (
integer-math.js) and references this chunk instead of the originally referenced module (math.js)