Example module:
dep.cjs
exports.init = void 0;
function init () {
}
exports.init = init;
main.mjs
import test from './test.cjs';
test.init();
Built with:
rollup --plugin @rollup/plugin-commonjs main.mjs
Should build correctly.
RollupJS reports the following error:
node_modules/es-module-lexer/dist/lexer.cjs (13:19)
11: export { parse_1 as parse };
12: export { init_1 as init };
13: export { init_2 as init };
^
Error: Duplicate export 'init' (Note that you need plugins to import files that are not JavaScript)
Fixed in #537
Great, let's get that deployed please :)
Most helpful comment
Fixed in #537