Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use
maybeAddMapping
to add sourcemap markings (#14510)
- Loading branch information
1 parent
c90add7
commit 4ce5740
Showing
7 changed files
with
63 additions
and
125 deletions.
There are no files selected for viewing
10 changes: 6 additions & 4 deletions
10
...ion/source-maps/input-source-map-multiple-output-sources-complete-replace/source-map.json
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 |
---|---|---|
@@ -1,13 +1,15 @@ | ||
{ | ||
"mappings": "AAAC;ACAD,K", | ||
"version": 3, | ||
"mappings": "AAAC,KCAD;ACAA,K", | ||
"names": [], | ||
"sources": [ | ||
"bar.js", | ||
"input.tsx", | ||
"baz.js" | ||
], | ||
"sourcesContent": [ | ||
"<bar />", | ||
"foo(1);\nfunction foo(bar: number): never {\n throw new Error('Intentional.');\n}", | ||
"baz();" | ||
], | ||
"version": 3 | ||
} | ||
] | ||
} |
2 changes: 1 addition & 1 deletion
2
...tures/transformation/source-maps/input-source-map-multiple-output-sources/source-map.json
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
16 changes: 11 additions & 5 deletions
16
...ures/transformation/source-maps/input-source-map-sources-complete-replace/source-map.json
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 |
---|---|---|
@@ -1,7 +1,13 @@ | ||
{ | ||
"mappings": "AAAC", | ||
"version": 3, | ||
"mappings": "AAAC,KCAD", | ||
"names": [], | ||
"sources": ["test.js"], | ||
"sourcesContent": ["<bar />"], | ||
"version": 3 | ||
} | ||
"sources": [ | ||
"test.js", | ||
"input.tsx" | ||
], | ||
"sourcesContent": [ | ||
"<bar />", | ||
"foo(1);\nfunction foo(bar: number): never {\n throw new Error('Intentional.');\n}" | ||
] | ||
} |
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
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