build: expose compiler-sfc and server-renderer under main vue package + optimize package size

This commit is contained in:
Evan You
2021-09-21 10:26:08 -04:00
parent a42a14d3bc
commit 471f66a1f6
18 changed files with 76 additions and 60 deletions

View File

@@ -46,7 +46,8 @@ module.exports = {
moduleNameMapper: {
'@vue/compat': '<rootDir>/packages/vue-compat/src',
'^@vue/(.*?)$': '<rootDir>/packages/$1/src',
vue: '<rootDir>/packages/vue/src'
vue: '<rootDir>/packages/vue/src',
'@vue/consolidate': '@vue/consolidate'
},
rootDir: __dirname,
testMatch: ['<rootDir>/packages/**/__tests__/**/*spec.[jt]s?(x)'],