Skip to content

Commit

Permalink
Fix Windows build output containing backslashes (#1096)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrygrFlzr authored Apr 18, 2021
1 parent 2477c79 commit d3abd97
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/witty-ligers-listen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/kit': patch
---

Fix Windows build output containing backward slashes
4 changes: 3 additions & 1 deletion packages/kit/src/core/build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,9 @@ async function build_client({
const resolved = path.resolve(cwd, file);
const relative = path.relative(config.kit.files.routes, resolved);

const name = relative.startsWith('..') ? path.basename(file) : path.join('pages', relative);
const name = relative.startsWith('..')
? path.basename(file)
: posixify(path.join('pages', relative));
input[name] = resolved;
});

Expand Down

1 comment on commit d3abd97

@vercel
Copy link

@vercel vercel bot commented on d3abd97 Apr 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.