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
This was discovered by pulling in dependencies from d3-geo and d3-shape modules, both of which have sub-modules which mix normal exports with default exports.
It seems my previous example was wrong as this was just a basic parse error. The actual issue was that default exports were not always properly included when not tree-shaking. Fix at #2758
How Do We Reproduce?
Clone https://github.com/mislav/rollup-shadowing and run
npm it
.Basically, there are two source files:
Note the mix of a normal export and a default export from the
foo.js
module.Expected Behavior
Generating a rollup bundle from
src/index.js
yields no conflicting variable/function names.Actual Behavior
The generated rollup bundle has two conflicting declarations of
function foo() { ... }
in the same scope:This was discovered by pulling in dependencies from
d3-geo
andd3-shape
modules, both of which have sub-modules which mix normal exports with default exports./cc @lukastaegert #2689
The text was updated successfully, but these errors were encountered: