Skip to content

Commit 8d817bb

Browse files
authored
build: use buildOption to determine runtime compile build (#742)
This makes it possible to create a separate package that uses runtime compilation.
1 parent 7b987d9 commit 8d817bb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

packages/vue/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
],
1414
"buildOptions": {
1515
"name": "Vue",
16+
"isRuntimeCompileBuild": true,
1617
"formats": [
1718
"esm-bundler",
1819
"esm-bundler-runtime",

rollup.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function createConfig(format, output, plugins = []) {
8282
const isRawESMBuild = format === 'esm'
8383
const isNodeBuild = format === 'cjs'
8484
const isBundlerESMBuild = /esm-bundler/.test(format)
85-
const isRuntimeCompileBuild = /vue\./.test(output.file)
85+
const isRuntimeCompileBuild = packageOptions.isRuntimeCompileBuild
8686

8787
if (isGlobalBuild) {
8888
output.name = packageOptions.name

0 commit comments

Comments
 (0)