diff options
author | Kenta Moriuchi <moriken@kimamass.com> | 2024-04-30 05:43:05 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-29 22:43:05 +0200 |
commit | 783533d2e354ad73356d7517b26293e48c10fc17 (patch) | |
tree | 68bd0fa01c59ab9c4ad6d2010fabb9babf6d8d85 /tests/specs/future/import_assertions/main.js | |
parent | 4384a126bb759580777e7a2678fe49bb015f2f69 (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/specs/future/import_assertions/main.js')
-rw-r--r-- | tests/specs/future/import_assertions/main.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/specs/future/import_assertions/main.js b/tests/specs/future/import_assertions/main.js new file mode 100644 index 000000000..9b4c4d036 --- /dev/null +++ b/tests/specs/future/import_assertions/main.js @@ -0,0 +1,2 @@ +import foo from "./main.json" assert { type: "json" }; +console.log(foo); |