diff --git a/packages/babel-generator/test/fixtures/sourcemaps/arrow-function-compact/input.js b/packages/babel-generator/test/fixtures/sourcemaps/arrow-function-compact/input.js new file mode 100644 index 000000000000..7c81c1fb8e2c --- /dev/null +++ b/packages/babel-generator/test/fixtures/sourcemaps/arrow-function-compact/input.js @@ -0,0 +1 @@ +(() => { return 42; }) diff --git a/packages/babel-generator/test/fixtures/sourcemaps/arrow-function-compact/options.json b/packages/babel-generator/test/fixtures/sourcemaps/arrow-function-compact/options.json new file mode 100644 index 000000000000..b27818ea4218 --- /dev/null +++ b/packages/babel-generator/test/fixtures/sourcemaps/arrow-function-compact/options.json @@ -0,0 +1,4 @@ +{ + "compact": true, + "sourceMaps": true +} diff --git a/packages/babel-generator/test/fixtures/sourcemaps/arrow-function-compact/output.js b/packages/babel-generator/test/fixtures/sourcemaps/arrow-function-compact/output.js new file mode 100644 index 000000000000..5479fdf08a87 --- /dev/null +++ b/packages/babel-generator/test/fixtures/sourcemaps/arrow-function-compact/output.js @@ -0,0 +1 @@ +()=>{return 42;}; \ No newline at end of file diff --git a/packages/babel-generator/test/fixtures/sourcemaps/arrow-function-compact/source-map.json b/packages/babel-generator/test/fixtures/sourcemaps/arrow-function-compact/source-map.json new file mode 100644 index 000000000000..8505472be788 --- /dev/null +++ b/packages/babel-generator/test/fixtures/sourcemaps/arrow-function-compact/source-map.json @@ -0,0 +1,11 @@ +{ + "version": 3, + "names": [], + "sources": [ + "fixtures/sourcemaps/BlockStatement-newline/input.js" + ], + "sourcesContent": [ + "(() => { return 42; })" + ], + "mappings": "AAAC,IAAM,CAAE,MAAO,GAAE,CAAE,CAAC" +} \ No newline at end of file