From 37dbe5249c9b5c447da5577b5c787d7006a4c80f Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Fri, 24 Dec 2021 09:38:20 +1100 Subject: fix(cli): include JSON modules in bundle (#13188) Fixes #13150 --- cli/tests/testdata/subdir/json_3.json | 1 + cli/tests/testdata/subdir/mod7.js | 3 +++ cli/tests/testdata/subdir/mod8.js | 3 +++ 3 files changed, 7 insertions(+) create mode 100644 cli/tests/testdata/subdir/json_3.json create mode 100644 cli/tests/testdata/subdir/mod7.js create mode 100644 cli/tests/testdata/subdir/mod8.js (limited to 'cli/tests/testdata') diff --git a/cli/tests/testdata/subdir/json_3.json b/cli/tests/testdata/subdir/json_3.json new file mode 100644 index 000000000..b20bc0649 --- /dev/null +++ b/cli/tests/testdata/subdir/json_3.json @@ -0,0 +1 @@ +"${globalThis}`and string literal`" diff --git a/cli/tests/testdata/subdir/mod7.js b/cli/tests/testdata/subdir/mod7.js new file mode 100644 index 000000000..2bd4b5eb7 --- /dev/null +++ b/cli/tests/testdata/subdir/mod7.js @@ -0,0 +1,3 @@ +import json1 from "./json_1.json" assert { type: "json" }; + +console.log(json1); diff --git a/cli/tests/testdata/subdir/mod8.js b/cli/tests/testdata/subdir/mod8.js new file mode 100644 index 000000000..5bf7a49a8 --- /dev/null +++ b/cli/tests/testdata/subdir/mod8.js @@ -0,0 +1,3 @@ +import json3 from "./json_3.json" assert { type: "json" }; + +console.log(json3); -- cgit v1.2.3