Explorar o código

chore: fix polyfill node conditions in dev

三咲智子 Kevin Deng %!s(int64=2) %!d(string=hai) anos
pai
achega
46d3910794
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/dev.js

+ 1 - 1
scripts/dev.js

@@ -92,7 +92,7 @@ const plugins = [
   }
 ]
 
-if (format === 'cjs' || pkg.buildOptions?.enableNonBrowserBranches) {
+if (format !== 'cjs' && pkg.buildOptions?.enableNonBrowserBranches) {
   plugins.push(polyfillNode())
 }