]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: fix polyfill node conditions in dev
author三咲智子 Kevin Deng <sxzz@sxzz.moe>
Fri, 17 Nov 2023 00:04:52 +0000 (08:04 +0800)
committerEvan You <yyx990803@gmail.com>
Fri, 17 Nov 2023 00:45:43 +0000 (08:45 +0800)
scripts/dev.js

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