-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
Description
CommonJS modules that have the defineProperty(exports, '__esModule', { value: true }) thing could potentially be inferred as ES modules automatically in Rollup, and their exports bindings treated as such. Almost a sort of reverse CommonJS -> ES6 transformation. This would allow any modules transpiled with Babel into CommonJS to support Rollup optimizations due to their bindings nature.
This would greatly improve Rollup's ability to inline modules, as a sort of alternative to the jsnext:main thing.
Just sending the idea along though, feel free to close.
Reactions are currently unavailable