mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
fix(vite): disable optimizeDeps
in ssr (#27356)
This commit is contained in:
parent
440f92e832
commit
2f932698c3
@ -51,7 +51,7 @@ export async function buildServer (ctx: ViteBuildContext) {
|
||||
'XMLHttpRequest': 'undefined',
|
||||
},
|
||||
optimizeDeps: {
|
||||
entries: ctx.nuxt.options.ssr ? [ctx.entry] : [],
|
||||
noDiscovery: true,
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
|
Loading…
Reference in New Issue
Block a user