Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vite: Fix .css.ts file resolution on Windows #1346

Merged
merged 2 commits into from
Mar 8, 2024
Merged

Conversation

askoufis
Copy link
Contributor

@askoufis askoufis commented Mar 5, 2024

We were incorrectly splitting the path inside getAbsoluteId on Windows because path.sep is OS-specific. We can use the static path.posix.sep instead because vite will always give us normalized paths.

Fixes #1339.
Fixes #1344.

Copy link

changeset-bot bot commented Mar 5, 2024

🦋 Changeset detected

Latest commit: dd9a2c4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@vanilla-extract/vite-plugin Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@askoufis askoufis changed the title Fix .css.ts file resolution on Windows vite: Fix .css.ts file resolution on Windows Mar 8, 2024
@askoufis askoufis enabled auto-merge (squash) March 8, 2024 10:42
@askoufis askoufis merged commit 8c2ac42 into master Mar 8, 2024
11 checks passed
@askoufis askoufis deleted the fix-windows-resolution branch March 8, 2024 10:49
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.

Windows css resolution Errors running the Remix example on Windows OS
3 participants