-
-
Notifications
You must be signed in to change notification settings - Fork 480
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(transformer): remove span of define value (#7811)
- Closes #7797 Removing span seems to work, but I'm not sure traversing all the time is okay. --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
1bb097d
commit 5b7e1ad
Showing
5 changed files
with
97 additions
and
3 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
23 changes: 23 additions & 0 deletions
23
...ions/plugins/snapshots/integrations__plugins__replace_global_defines__test_sourcemap.snap
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,23 @@ | ||
--- | ||
source: crates/oxc_transformer/tests/integrations/plugins/replace_global_defines.rs | ||
expression: snapshot | ||
snapshot_kind: text | ||
--- | ||
- test.js.map | ||
(0:0) "1;\n" --> (0:0) "1;\n" | ||
(1:0) "__OBJECT__;\n" --> (1:0) "({ 'hello': 'test' });\n" | ||
(2:0) "2;\n" --> (2:0) "2;\n" | ||
(3:0) "__STRING__;\n" --> (3:0) "'development';\n" | ||
(4:0) "3;\n" --> (4:0) "3;\n" | ||
(5:0) "log(__OBJECT__)" --> (5:0) "log({ 'hello': 'test' })" | ||
(5:15) ";\n" --> (5:24) ";\n" | ||
(6:0) "4;\n" --> (6:0) "4;\n" | ||
(7:0) "log(__STRING__)" --> (7:0) "log('development')" | ||
(7:15) ";\n" --> (7:18) ";\n" | ||
(8:0) "5;\n" --> (8:0) "5;\n" | ||
(9:0) "__OBJECT__." --> (9:0) "({ 'hello': 'test' })." | ||
(9:11) "hello;\n" --> (9:22) "hello;\n" | ||
(10:0) "6;\n" --> (10:0) "6;\n" | ||
(11:0) "log(__MEMBER__)" --> (11:0) "log(xx.yy.zz)" | ||
(11:15) ";\n" --> (11:13) ";\n" | ||
(12:0) "7;\n" --> (12:0) "7;\n" |