-
Notifications
You must be signed in to change notification settings - Fork 778
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[wrangler] fix: apply source mapping to deployment validation errors (#…
…4600) * fix: apply source mapping to deployment validation errors * fixup! fix: apply source mapping to deployment validation errors Rename `RetrieveSourceMap` to `RetrieveSourceMapFunction` * fixup! fix: apply source mapping to deployment validation errors Add comment highlighting why `retrieveSourceMapOverride` module level * fixup! fix: apply source mapping to deployment validation errors Add tests for different types of modules/source maps * fixup! fix: apply source mapping to deployment validation errors Use `dedent` with multiline template literals * fixup! fix: apply source mapping to deployment validation errors Use correct variable name in error
- Loading branch information
Showing
4 changed files
with
228 additions
and
6 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,7 @@ | ||
--- | ||
"wrangler": patch | ||
--- | ||
|
||
fix: apply source mapping to deployment validation errors | ||
|
||
Previously if a Worker failed validation during `wrangler deploy`, the displayed error would reference locations in built JavaScript files. This made it more difficult to debug validation errors. This change ensures these errors are now source mapped, referencing locations in source files instead. |
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
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