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

Fix esbuild mode on Windows #1910

Merged
merged 11 commits into from
Jul 5, 2022
Merged

Fix esbuild mode on Windows #1910

merged 11 commits into from
Jul 5, 2022

Conversation

cristiano-belloni
Copy link
Contributor

@cristiano-belloni cristiano-belloni commented Jul 4, 2022

All the paths that end up in our built file must have posix separators (/). In some cases, we end up with Windows separators (when we use filesystem paths to build web paths on windows), mixed separators (when we intermingle web paths and filesystem paths) or mangled paths (when we process windows separators in strings and end up with quoted characters). This PR introduces a function that converts all kind of paths to posix-separated paths.

@changeset-bot
Copy link

changeset-bot bot commented Jul 4, 2022

🦋 Changeset detected

Latest commit: 9de5c43

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

This PR includes changesets to release 1 package
Name Type
modular-scripts 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

@cristiano-belloni cristiano-belloni changed the title Fix/esbuild windows Fix esbuild mode on Windows Jul 4, 2022
@coveralls
Copy link
Collaborator

coveralls commented Jul 4, 2022

Coverage Status

Coverage increased (+0.1%) to 28.68% when pulling 9de5c43 on fix/esbuild-windows into aa68e0e on main.

@cristiano-belloni cristiano-belloni marked this pull request as ready for review July 4, 2022 17:04
@cristiano-belloni cristiano-belloni merged commit d35167c into main Jul 5, 2022
@cristiano-belloni cristiano-belloni deleted the fix/esbuild-windows branch July 5, 2022 10:43
@github-actions github-actions bot mentioned this pull request Jul 5, 2022
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.

3 participants