Skip to content

Commit

Permalink
fix: apply chunkFileNames on windows (#1189)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Apr 25, 2023
1 parent 1e5bb86 commit b9370be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/rollup/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ export const getRollupConfig = (nitro: Nitro): RollupConfig => {
entryFileNames: "index.mjs",
chunkFileNames(chunkInfo) {
let prefix = "";
const lastModule = chunkInfo.moduleIds[chunkInfo.moduleIds.length - 1];
const lastModule = normalize(
chunkInfo.moduleIds[chunkInfo.moduleIds.length - 1]
);
if (lastModule.startsWith(buildServerDir)) {
prefix = join("app", relative(buildServerDir, dirname(lastModule)));
} else if (lastModule.startsWith(runtimeAppDir)) {
Expand Down

0 comments on commit b9370be

Please sign in to comment.