mirror of
https://github.com/nuxt/nuxt.git
synced 2025-02-21 16:09:52 +00:00
fix(vite): override previous #app-manifest
alias (#30618)
This commit is contained in:
parent
4cdf3d1c6c
commit
40df432dde
@ -110,12 +110,12 @@ export async function buildClient (ctx: ViteBuildContext) {
|
|||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
// work around vite optimizer bug
|
|
||||||
'#app-manifest': 'unenv/runtime/mock/empty',
|
|
||||||
// user aliases
|
// user aliases
|
||||||
...nodeCompat.alias,
|
...nodeCompat.alias,
|
||||||
...ctx.config.resolve?.alias,
|
...ctx.config.resolve?.alias,
|
||||||
'nitro/runtime': join(ctx.nuxt.options.buildDir, 'nitro.client.mjs'),
|
'nitro/runtime': join(ctx.nuxt.options.buildDir, 'nitro.client.mjs'),
|
||||||
|
// work around vite optimizer bug
|
||||||
|
'#app-manifest': 'unenv/runtime/mock/empty',
|
||||||
},
|
},
|
||||||
dedupe: [
|
dedupe: [
|
||||||
'vue',
|
'vue',
|
||||||
|
Loading…
Reference in New Issue
Block a user