fix(build): enforce __esModule interop for cjs builds
This commit is contained in:
parent
29f8cf8b07
commit
4b7036653e
|
@ -104,6 +104,7 @@ function createConfig(format, output, plugins = []) {
|
||||||
const isCompatBuild = !!packageOptions.compat
|
const isCompatBuild = !!packageOptions.compat
|
||||||
|
|
||||||
output.exports = isCompatPackage ? 'auto' : 'named'
|
output.exports = isCompatPackage ? 'auto' : 'named'
|
||||||
|
output.esModule = true
|
||||||
output.sourcemap = !!process.env.SOURCE_MAP
|
output.sourcemap = !!process.env.SOURCE_MAP
|
||||||
output.externalLiveBindings = false
|
output.externalLiveBindings = false
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue