mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 05:35:13 +00:00
fix(nitro): emit chunk names without #
(#477)
This commit is contained in:
parent
0c50af9fd5
commit
de57626a7a
@ -89,6 +89,9 @@ export const getRollupConfig = (nitroContext: NitroContext) => {
|
||||
} else if (lastModule.includes('assets')) {
|
||||
prefix = 'assets'
|
||||
}
|
||||
if (chunkInfo.name.includes('#')) {
|
||||
return join('chunks', prefix, chunkInfo.name.replace(/#/g, '-') + '.mjs')
|
||||
}
|
||||
return join('chunks', prefix, '[name].mjs')
|
||||
},
|
||||
inlineDynamicImports: nitroContext.inlineDynamicImports,
|
||||
|
Loading…
Reference in New Issue
Block a user