From 783533d2e354ad73356d7517b26293e48c10fc17 Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Tue, 30 Apr 2024 05:43:05 +0900 Subject: 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 --- tests/testdata/subdir/mod7.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/testdata/subdir/mod7.js') 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); -- cgit v1.2.3