Преглед изворни кода

chore: fix polyfill node conditions in dev

三咲智子 Kevin Deng пре 2 година
родитељ
комит
46d3910794
1 измењених фајлова са 1 додато и 1 уклоњено
  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())
 }