ci: fix size on ci

This commit is contained in:
Evan You 2021-09-23 14:56:02 -04:00
parent f27a98becc
commit 4886a63d82
2 changed files with 6 additions and 1 deletions

View File

@ -9,7 +9,7 @@
"build": "node scripts/build.js",
"size": "run-s size-global size-baseline",
"size-global": "node scripts/build.js vue runtime-dom -f global -p",
"size-baseline": "node scripts/build.js vue runtime-dom runtime-core reactivity shared -f esm-bundler && cd packages/size-check && vite build",
"size-baseline": "node scripts/build.js runtime-dom runtime-core reactivity shared -f esm-bundler && cd packages/size-check && vite build",
"lint": "eslint --ext .ts packages/*/src/**.ts",
"format": "prettier --write --parser typescript \"packages/**/*.ts?(x)\"",
"test": "node scripts/build.js vue -f global -d && jest --runInBand",

View File

@ -1,4 +1,9 @@
export default {
resolve: {
alias: {
vue: '@vue/runtime-dom/dist/runtime-dom.esm-bundler.js'
}
},
build: {
rollupOptions: {
input: ['src/index.ts'],