Skip to content
Permalink
Browse files
fix(build): enforce __esModule interop for cjs builds
  • Loading branch information
yyx990803 committed Feb 2, 2023
1 parent 29f8cf8 commit 4b70366
Showing 1 changed file with 1 addition and 0 deletions.
@@ -104,6 +104,7 @@ function createConfig(format, output, plugins = []) {
const isCompatBuild = !!packageOptions.compat

output.exports = isCompatPackage ? 'auto' : 'named'
output.esModule = true
output.sourcemap = !!process.env.SOURCE_MAP
output.externalLiveBindings = false

0 comments on commit 4b70366

Please sign in to comment.