Skip to content

Commit 108474e

Browse files
committed
workflow: fix dev script for compat build
1 parent 7fb5732 commit 108474e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/dev.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ const postfix = format.endsWith('-runtime')
2626

2727
const outfile = resolve(
2828
__dirname,
29-
`../packages/${target}/dist/${target}.${postfix}.js`
29+
`../packages/${target}/dist/${
30+
target === 'vue-compat' ? `vue` : target
31+
}.${postfix}.js`
3032
)
3133
const relativeOutfile = relative(process.cwd(), outfile)
3234

@@ -92,7 +94,7 @@ build({
9294
__ESM_BROWSER__: String(format.includes('esm-browser')),
9395
__NODE_JS__: String(format === 'cjs'),
9496
__SSR__: String(format === 'cjs' || format.includes('esm-bundler')),
95-
__COMPAT__: `false`,
97+
__COMPAT__: String(target === 'vue-compat'),
9698
__FEATURE_SUSPENSE__: `true`,
9799
__FEATURE_OPTIONS_API__: `true`,
98100
__FEATURE_PROD_DEVTOOLS__: `false`

0 commit comments

Comments
 (0)