more source map tests
This commit is contained in:
1
test/fixtures/syntax/source-maps/full/actual.js
vendored
Normal file
1
test/fixtures/syntax/source-maps/full/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
arr.map(x => x * x);
|
||||
3
test/fixtures/syntax/source-maps/full/expected.js
vendored
Normal file
3
test/fixtures/syntax/source-maps/full/expected.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
arr.map(function (x) {
|
||||
return x * x;
|
||||
});
|
||||
8
test/fixtures/syntax/source-maps/full/source-map.json
vendored
Normal file
8
test/fixtures/syntax/source-maps/full/source-map.json
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"version": 3,
|
||||
"file": "source-maps/full/expected.js",
|
||||
"sources": ["source-maps/full/actual.js"],
|
||||
"names": [],
|
||||
"mappings": "AAAA,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAC;SAAK,EAAE,EAAE;CAAC,CAAC",
|
||||
"sourcesContent": ["arr.map(x => x * x);"]
|
||||
}
|
||||
1
test/fixtures/syntax/source-maps/inline/actual.js
vendored
Normal file
1
test/fixtures/syntax/source-maps/inline/actual.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
arr.map(x => x * x);
|
||||
3
test/fixtures/syntax/source-maps/inline/expected.js
vendored
Normal file
3
test/fixtures/syntax/source-maps/inline/expected.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
arr.map(function (x) {
|
||||
return x * x;
|
||||
});
|
||||
3
test/fixtures/syntax/source-maps/inline/options.json
vendored
Normal file
3
test/fixtures/syntax/source-maps/inline/options.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"sourceMap": "inline"
|
||||
}
|
||||
Reference in New Issue
Block a user