From: basvanmeurs Date: Wed, 19 Feb 2020 14:50:24 +0000 (+0100) Subject: build: use buildOption to determine runtime compile build (#742) X-Git-Tag: v3.0.0-alpha.6~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8d817bb4460e7654b58596ba1711ed0ccac96b60;p=thirdparty%2Fvuejs%2Fcore.git build: use buildOption to determine runtime compile build (#742) This makes it possible to create a separate package that uses runtime compilation. --- diff --git a/packages/vue/package.json b/packages/vue/package.json index e7c67afcd1..97a9b56118 100644 --- a/packages/vue/package.json +++ b/packages/vue/package.json @@ -13,6 +13,7 @@ ], "buildOptions": { "name": "Vue", + "isRuntimeCompileBuild": true, "formats": [ "esm-bundler", "esm-bundler-runtime", diff --git a/rollup.config.js b/rollup.config.js index ed3e5cd44c..b1248ee0d9 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -82,7 +82,7 @@ function createConfig(format, output, plugins = []) { const isRawESMBuild = format === 'esm' const isNodeBuild = format === 'cjs' const isBundlerESMBuild = /esm-bundler/.test(format) - const isRuntimeCompileBuild = /vue\./.test(output.file) + const isRuntimeCompileBuild = packageOptions.isRuntimeCompileBuild if (isGlobalBuild) { output.name = packageOptions.name