summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/subdir
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2021-12-24 09:38:20 +1100
committerGitHub <noreply@github.com>2021-12-24 09:38:20 +1100
commit37dbe5249c9b5c447da5577b5c787d7006a4c80f (patch)
tree3018d42a9b068170ce360f26f04a5e84fdd87b18 /cli/tests/testdata/subdir
parent86bddcc44a3b7356c7b0ccaa526dbaf72e3a9abf (diff)
fix(cli): include JSON modules in bundle (#13188)
Fixes #13150
Diffstat (limited to 'cli/tests/testdata/subdir')
-rw-r--r--cli/tests/testdata/subdir/json_3.json1
-rw-r--r--cli/tests/testdata/subdir/mod7.js3
-rw-r--r--cli/tests/testdata/subdir/mod8.js3
3 files changed, 7 insertions, 0 deletions
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);