tree-shake extra deps for vue-server-renderer

This commit is contained in:
Pooya Parsa 2020-11-02 01:54:45 +01:00
parent 9b7016059b
commit 82399259db
1 changed files with 10 additions and 1 deletions

View File

@ -14,8 +14,17 @@ export type RollupConfig = InputOptions & { output: OutputOptions }
export const getRollupConfig = (config) => { export const getRollupConfig = (config) => {
const mocks = [ const mocks = [
'@babel/parser', // @nuxt/devalue
'consola',
// vue2
'encoding', 'encoding',
'he',
'resolve',
'source-map',
'lodash.template',
'serialize-javascript',
// vue3
'@babel/parser',
'@vue/compiler-core', '@vue/compiler-core',
'@vue/compiler-dom', '@vue/compiler-dom',
'@vue/compiler-ssr' '@vue/compiler-ssr'