diff options
| author | Kitson Kelly <me@kitsonkelly.com> | 2021-12-24 09:38:20 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-24 09:38:20 +1100 |
| commit | 37dbe5249c9b5c447da5577b5c787d7006a4c80f (patch) | |
| tree | 3018d42a9b068170ce360f26f04a5e84fdd87b18 /cli/tests/testdata/subdir | |
| parent | 86bddcc44a3b7356c7b0ccaa526dbaf72e3a9abf (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.json | 1 | ||||
| -rw-r--r-- | cli/tests/testdata/subdir/mod7.js | 3 | ||||
| -rw-r--r-- | cli/tests/testdata/subdir/mod8.js | 3 |
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); |
