Skip to content

Commit

Permalink
chore: fix polyfill node conditions in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz authored and yyx990803 committed Nov 17, 2023
1 parent 83e618f commit 46d3910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const plugins = [
}
]

if (format === 'cjs' || pkg.buildOptions?.enableNonBrowserBranches) {
if (format !== 'cjs' && pkg.buildOptions?.enableNonBrowserBranches) {
plugins.push(polyfillNode())
}

Expand Down

0 comments on commit 46d3910

Please sign in to comment.