Skip to content

Commit

Permalink
disable esModule and re-export for nodejs (#1486)
Browse files Browse the repository at this point in the history
  • Loading branch information
barelyhuman committed Jan 1, 2023
1 parent 1e986ec commit dcc8b60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rollup.config.js
Expand Up @@ -81,8 +81,9 @@ function createCommonJSConfig(input, output, options) {
output: {
file: `${output}.js`,
format: 'cjs',
esModule: false,
outro: options.addModuleExport
? 'module.exports = exports.default; Object.assign(exports.default, exports);'
? ';(module.exports = (exports && exports.default) || {}),\n Object.assign(module.exports, exports)'
: '',
},
external,
Expand Down

0 comments on commit dcc8b60

Please sign in to comment.