From 4a8040623e98f2e704272f6bc87f1a738097af0d Mon Sep 17 00:00:00 2001 From: liuxingbaoyu <30521560+liuxingbaoyu@users.noreply.github.com> Date: Fri, 23 Sep 2022 03:29:15 +0800 Subject: [PATCH] review --- .../sourcemaps/arrow-function-compact/input.js | 1 + .../sourcemaps/arrow-function-compact/options.json | 4 ++++ .../sourcemaps/arrow-function-compact/output.js | 1 + .../sourcemaps/arrow-function-compact/source-map.json | 11 +++++++++++ 4 files changed, 17 insertions(+) create mode 100644 packages/babel-generator/test/fixtures/sourcemaps/arrow-function-compact/input.js create mode 100644 packages/babel-generator/test/fixtures/sourcemaps/arrow-function-compact/options.json create mode 100644 packages/babel-generator/test/fixtures/sourcemaps/arrow-function-compact/output.js create mode 100644 packages/babel-generator/test/fixtures/sourcemaps/arrow-function-compact/source-map.json 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