Przeglądaj źródła

chore: fix polyfill node conditions in dev

三咲智子 Kevin Deng 2 lat temu
rodzic
commit
5af8ee2b94
1 zmienionych plików z 1 dodań i 1 usunięć
  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())
 }