mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-18 09:25:54 +00:00
fix(vite): provide fallback alias for #app-manifest
(#30587)
This commit is contained in:
parent
0a2b01fbc4
commit
4187f68139
@ -110,6 +110,9 @@ export async function buildClient (ctx: ViteBuildContext) {
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
// work around vite optimizer bug
|
||||
'#app-manifest': 'unenv/runtime/mock/empty',
|
||||
// user aliases
|
||||
...nodeCompat.alias,
|
||||
...ctx.config.resolve?.alias,
|
||||
'nitro/runtime': join(ctx.nuxt.options.buildDir, 'nitro.client.mjs'),
|
||||
|
Loading…
Reference in New Issue
Block a user