build: use buildOption to determine runtime compile build (#742)
This makes it possible to create a separate package that uses runtime compilation.
This commit is contained in:
parent
7b987d9450
commit
8d817bb446
@ -13,6 +13,7 @@
|
||||
],
|
||||
"buildOptions": {
|
||||
"name": "Vue",
|
||||
"isRuntimeCompileBuild": true,
|
||||
"formats": [
|
||||
"esm-bundler",
|
||||
"esm-bundler-runtime",
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user