]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
build: fix isBundlerESMBuild check in rollup.js
authorEvan You <yyx990803@gmail.com>
Wed, 16 Oct 2019 02:34:14 +0000 (22:34 -0400)
committerEvan You <yyx990803@gmail.com>
Wed, 16 Oct 2019 02:34:14 +0000 (22:34 -0400)
rollup.config.js

index 3a7dd909d617234714c056557ef6d63dca1f5835..56d34528a7a37f796c28739cbc989c988e5d0862 100644 (file)
@@ -75,10 +75,12 @@ function createConfig(output, plugins = []) {
   const isProductionBuild =
     process.env.__DEV__ === 'false' || /\.prod\.js$/.test(output.file)
   const isGlobalBuild = /\.global(\.prod)?\.js$/.test(output.file)
-  const isBundlerESMBuild = /\.esm\.js$/.test(output.file)
+  const isBundlerESMBuild = /\.esm-bundler\.js$/.test(output.file)
   const isBrowserESMBuild = /esm-browser(\.prod)?\.js$/.test(output.file)
   const isRuntimeCompileBuild = /\/vue\./.test(output.file)
 
+  console.log(isBundlerESMBuild)
+
   if (isGlobalBuild) {
     output.name = packageOptions.name
   }