소스 검색

chore: fix polyfill node conditions in dev

三咲智子 Kevin Deng 2 년 전
부모
커밋
5af8ee2b94
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())
 }