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