Repository navigation
feat: Add source mapping option to unplugin #2942
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
Open
+2,749
−829
Open
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
4cfd519
Update transpile api
aleksanderkatan 9d9b1bf
Add tests stub
aleksanderkatan 3a4a6ab
Assign source map in parsers
aleksanderkatan 1796f6c
Add stringifyMap
aleksanderkatan ccfa357
Add more tests
aleksanderkatan 374c1c3
Reject source maps from transpile node
aleksanderkatan 9a4fef0
Don't override source map after a fallthrough node
aleksanderkatan fcd8ec0
Update js doc
aleksanderkatan 40c3ff9
Update types
aleksanderkatan a450781
Remove direct tinyest imports
aleksanderkatan 5525ca8
Add unstable_sourceMaps option to unplugin
aleksanderkatan f60e56c
Emit sourceMap to metadata
aleksanderkatan d3f5147
Add tests for multiple plugins
aleksanderkatan 56620c2
Add more tests
aleksanderkatan cac68d0
Pass correct sourcemap getters in unplugin
aleksanderkatan e1905d1
Fix types
aleksanderkatan e6254cb
Fix source map in metadata
aleksanderkatan 251e71b
Handle source mapped metadata in typegpu
aleksanderkatan fc21072
Simplify map type
aleksanderkatan 37f8f00
Remove acorn dep
aleksanderkatan 4def616
Fix tseynit tests
aleksanderkatan d78d9a5
Simplify state initialization
aleksanderkatan 44ab180
Fix tseynit tests
aleksanderkatan 7cffb57
Move plugins to top of the file
aleksanderkatan 21be546
Change rollup plugin to unplugin factory
aleksanderkatan 0c82e30
Add webpack tests
aleksanderkatan 16311ea
Add a proper fallback for webpack
aleksanderkatan 65c15f5
Update tests
aleksanderkatan 6df9e08
nr fix
aleksanderkatan 818f359
Sanify types
aleksanderkatan 7b4faa7
Simplify tests to only AST
aleksanderkatan 933366c
Revert two tests
aleksanderkatan 0348bc4
Don't warn when source maps are disabled
aleksanderkatan 7ca77f7
Tidy up transpile
aleksanderkatan c80b81a
Remove unnecessary option
aleksanderkatan 09e27dc
Merge remote-tracking branch 'origin/main' into feat/source-mapping
aleksanderkatan 73f20b0
impr: webpackTransform signature
aleksanderkatan 891b4ac
impr: warn only once
aleksanderkatan 9cbb21d
Merge remote-tracking branch 'origin/main' into feat/source-mapping
aleksanderkatan 3159b8c
fix: tests
aleksanderkatan 97917d3
Merge remote-tracking branch 'origin/main' into feat/source-mapping
aleksanderkatan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Yep, as intended!
We will use it once we rewrite wgsl errors.