From: Evan You Date: Wed, 16 Oct 2019 02:34:14 +0000 (-0400) Subject: build: fix isBundlerESMBuild check in rollup.js X-Git-Tag: v3.0.0-alpha.0~409 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=260eab85ff9a0f9af181f515ddf5abcb988a7838;p=thirdparty%2Fvuejs%2Fcore.git build: fix isBundlerESMBuild check in rollup.js --- diff --git a/rollup.config.js b/rollup.config.js index 3a7dd909d6..56d34528a7 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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 }