Skip to content

Commit

Permalink
fix(nitro): emit chunk names without # (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Sep 5, 2021
1 parent d4a9f23 commit ce9a38e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rollup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ce9a38e

Please sign in to comment.