Skip to content

Normalize lazy-ref src values - #7

Merged
brenelz merged 3 commits into
solidjs:mainfrom
Mersho:fix/windows-backslash
Sep 20, 2026
Merged

brenelz merged 3 commits into
solidjs:mainfrom
Mersho:fix/windows-backslash

Conversation

@Mersho

@Mersho Mersho commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Fixes #6

Comment thread test/vite.spec.ts
Turn the tests job into an os matrix (ubuntu-latest,
windows-latest), fail-fast off.

The posix-separator regression test is trivially green on
Linux — it only fails on a Windows runner, where node:path
relative() emits backslashes. Without Windows in CI the
invariant is pinned but never enforced; this makes the regression
impossible to reintroduce unnoticed.
node:path relative() emits Windows separators, which never match
Vite's always-posix client-manifest keys — SSR hydration preloads
miss and server lazy() breaks. Every other path in the pipeline is
already normalized through normalizePath(); these two sites were the
only ones missed. Turns the regression test from the previous commit
green on Windows.
@Mersho
Mersho force-pushed the fix/windows-backslash branch from 745ffdf to 89cb733 Compare September 12, 2026 00:13
@brenelz
brenelz merged commit 5e61d2b into solidjs:main Sep 20, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Serialized lazy-ref src values contain backslashes

2 participants