-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix (remix-serve): Fix source map loading (#8174)
Co-authored-by: Matt Brophy <[email protected]> Co-authored-by: Pedro Cattori <[email protected]>
- Loading branch information
1 parent
4222e71
commit 999b565
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@remix-run/serve": patch | ||
--- | ||
|
||
Fix source map loading when file has `?t=timestamp` suffix (rebuilds) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
999b565
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Edit: just saw that this was fixed 20h ago and is just awaiting the next release. :-)
Hey friends,
This commit broke loading source maps on windows. The file reference on Windows gets a leading \ that breaks loading it. I've manually changed the code locally and this fix works for me:
999b565
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, sorry about that. I should have tested on Windows, especially when it is path-related.