Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
inputSourceMap should work when it is in an external file (#10623)
* fix: construct comment block for fromMapFileComment * add test * small tweak: redundant capturing group
- Loading branch information
Showing
6 changed files
with
22 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
5 changes: 5 additions & 0 deletions
5
...es/babel-core/test/fixtures/transformation/source-maps/input-source-map-external/input.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
...abel-core/test/fixtures/transformation/source-maps/input-source-map-external/input.js.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 3 additions & 0 deletions
3
...abel-core/test/fixtures/transformation/source-maps/input-source-map-external/options.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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"inputSourceMap": true | ||
} |
3 changes: 3 additions & 0 deletions
3
...s/babel-core/test/fixtures/transformation/source-maps/input-source-map-external/output.js
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,3 @@ | ||
var foo = function () { | ||
return 4; | ||
}; |
7 changes: 7 additions & 0 deletions
7
...l-core/test/fixtures/transformation/source-maps/input-source-map-external/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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"mappings": "AAAA,IAAA,GAAA,GAAU,Y;SAAM,C;AAAC,CAAjB", | ||
"names": [], | ||
"sources": ["original.js"], | ||
"sourcesContent": ["var foo = () => 4;"], | ||
"version": 3 | ||
} |