summaryrefslogtreecommitdiff
path: root/tests/testdata/subdir/mod7.js
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2024-04-30 05:43:05 +0900
committerGitHub <noreply@github.com>2024-04-29 22:43:05 +0200
commit783533d2e354ad73356d7517b26293e48c10fc17 (patch)
tree68bd0fa01c59ab9c4ad6d2010fabb9babf6d8d85 /tests/testdata/subdir/mod7.js
parent4384a126bb759580777e7a2678fe49bb015f2f69 (diff)
FUTURE: remove import assertions support for JavaScript (#23541)
Ref #17944, https://github.com/swc-project/swc/issues/8893 TypeScript removes the `assert` keywords in the transpile, so this PR only works for JavaScript files
Diffstat (limited to 'tests/testdata/subdir/mod7.js')
-rw-r--r--tests/testdata/subdir/mod7.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testdata/subdir/mod7.js b/tests/testdata/subdir/mod7.js
index 2bd4b5eb7..e71ced92e 100644
--- a/tests/testdata/subdir/mod7.js
+++ b/tests/testdata/subdir/mod7.js
@@ -1,3 +1,3 @@
-import json1 from "./json_1.json" assert { type: "json" };
+import json1 from "./json_1.json" with { type: "json" };
console.log(json1);