Skip to content

Commit 46d3910

Browse files
sxzzyyx990803
authored andcommitted
chore: fix polyfill node conditions in dev
1 parent 83e618f commit 46d3910

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const plugins = [
9292
}
9393
]
9494

95-
if (format === 'cjs' || pkg.buildOptions?.enableNonBrowserBranches) {
95+
if (format !== 'cjs' && pkg.buildOptions?.enableNonBrowserBranches) {
9696
plugins.push(polyfillNode())
9797
}
9898

0 commit comments

Comments
 (0)