mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
disable esModule and re-export for nodejs (#1486)
This commit is contained in:
parent
1e986ec97f
commit
dcc8b60c79
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user