Original here
- Rollup Plugin Name: @rollup/plugin-commonjs
- Rollup Plugin Version: 12.0.0
- Rollup Version: 2.10.8
- Operating System (or Browser): MacOS Catalina 10.15.4
- Node Version: 12.16
How Do We Reproduce?
- Install a commonjs library with a single
module.exports.
- Do a import default.
Import from 'library'
- build with
transformMixedEsModules: true.
https://repl.it/repls/StainedOrchidUserinterface
Expected Behavior
If I understand well, the transformMixedEsModules should first patch the default export and then pass it to syntheticNamedExports
Actual Behavior
transformMixedEsModules: true in commonjs() config:
Modules with 'syntheticNamedExports' need a default export.
Original here
How Do We Reproduce?
module.exports.Import from 'library'transformMixedEsModules: true.https://repl.it/repls/StainedOrchidUserinterface
Expected Behavior
If I understand well, the
transformMixedEsModulesshould first patch the default export and then pass it tosyntheticNamedExportsActual Behavior
transformMixedEsModules: true in commonjs() config: