mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +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',
|
'XMLHttpRequest': 'undefined',
|
||||||
},
|
},
|
||||||
optimizeDeps: {
|
optimizeDeps: {
|
||||||
entries: ctx.nuxt.options.ssr ? [ctx.entry] : [],
|
noDiscovery: true,
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
|
Loading…
Reference in New Issue
Block a user