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

View File

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