Skip to content

Commit

Permalink
workflow: fix dev script for compat build
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed May 23, 2022
1 parent 7fb5732 commit 108474e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/dev.js
Expand Up @@ -26,7 +26,9 @@ const postfix = format.endsWith('-runtime')

const outfile = resolve(
__dirname,
`../packages/${target}/dist/${target}.${postfix}.js`
`../packages/${target}/dist/${
target === 'vue-compat' ? `vue` : target
}.${postfix}.js`
)
const relativeOutfile = relative(process.cwd(), outfile)

Expand Down Expand Up @@ -92,7 +94,7 @@ build({
__ESM_BROWSER__: String(format.includes('esm-browser')),
__NODE_JS__: String(format === 'cjs'),
__SSR__: String(format === 'cjs' || format.includes('esm-bundler')),
__COMPAT__: `false`,
__COMPAT__: String(target === 'vue-compat'),
__FEATURE_SUSPENSE__: `true`,
__FEATURE_OPTIONS_API__: `true`,
__FEATURE_PROD_DEVTOOLS__: `false`
Expand Down

0 comments on commit 108474e

Please sign in to comment.