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
Rollup version 2.3.4 and onward seems to be causing the issue. Rollup version 2.3.3 does not have the issue and the code works as expected. The reproduction link uses the latest version of rollup and the commonjs plugin. Similar to #400
Expected Behavior
Named imports from UMD modules with a default export should resolve to the correct variable.
Actual Behavior
Named imports are resolving from the default export which in this case is undefined.
The text was updated successfully, but these errors were encountered:
This is the exact same issue as #400.
Please refer to my reply there and read carefully. Following the links is also recommended.
The gist of it - we follow the babel standard with __esModule export for interop between CJS and ESM. It does not support both named exports and default export, and there's no good choice between them.
So there are two ways to do this correctly,
Add the named exports over the defaults exports too - to make them compatible (also with webpack and other packers). This is what most people do.
How Do We Reproduce?
https://repl.it/repls/EasygoingStudiousFeed
Rollup version 2.3.4 and onward seems to be causing the issue. Rollup version 2.3.3 does not have the issue and the code works as expected. The reproduction link uses the latest version of rollup and the commonjs plugin. Similar to #400
Expected Behavior
Named imports from UMD modules with a default export should resolve to the correct variable.
Actual Behavior
Named imports are resolving from the default export which in this case is undefined.
The text was updated successfully, but these errors were encountered: