Skip to content

Commit d3abd97

Browse files
authored
Fix Windows build output containing backslashes (#1096)
1 parent 2477c79 commit d3abd97

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/witty-ligers-listen.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@sveltejs/kit': patch
3+
---
4+
5+
Fix Windows build output containing backward slashes

packages/kit/src/core/build/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ async function build_client({
124124
const resolved = path.resolve(cwd, file);
125125
const relative = path.relative(config.kit.files.routes, resolved);
126126

127-
const name = relative.startsWith('..') ? path.basename(file) : path.join('pages', relative);
127+
const name = relative.startsWith('..')
128+
? path.basename(file)
129+
: posixify(path.join('pages', relative));
128130
input[name] = resolved;
129131
});
130132

0 commit comments

Comments
 (0)