build: fix compiler-sfc build

This commit is contained in:
Evan You 2022-06-10 22:51:41 +08:00
parent 5bee34c6e1
commit 4306cc67b9
2 changed files with 3 additions and 1 deletions

View File

@ -30,7 +30,8 @@
"require": "./compiler-sfc/index.js"
},
"./dist/*": "./dist/*",
"./types/*": "./types/*"
"./types/*": "./types/*",
"./package.json": "./package.json"
},
"sideEffects": false,
"scripts": {

View File

@ -211,6 +211,7 @@ const builds = {
entry: resolve('packages/compiler-sfc/src/index.ts'),
dest: resolve('packages/compiler-sfc/dist/compiler-sfc.js'),
format: 'cjs',
transpile: false,
external: Object.keys(
require('../packages/compiler-sfc/package.json').dependencies
),