Skip to content

Commit

Permalink
fix(build): enforce __esModule interop for cjs builds
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Feb 2, 2023
1 parent 29f8cf8 commit 4b70366
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4b70366

Please sign in to comment.