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/testdata/npm/import_json/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/testdata/npm/import_json/main.js')
-rw-r--r-- | tests/testdata/npm/import_json/main.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/testdata/npm/import_json/main.js b/tests/testdata/npm/import_json/main.js index b752bdef8..ac6cee9a8 100644 --- a/tests/testdata/npm/import_json/main.js +++ b/tests/testdata/npm/import_json/main.js @@ -1,4 +1,4 @@ -import json from "npm:@denotest/binary-package@1/package.json" assert { +import json from "npm:@denotest/binary-package@1/package.json" with { type: "json", }; console.log(json); |