mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
tree-shake extra deps for vue-server-renderer
This commit is contained in:
parent
9b7016059b
commit
82399259db
@ -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'
|
||||||
|
Loading…
Reference in New Issue
Block a user