From 1d4169204cdc870a084a3371500d7b3ab8546bc2 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Wed, 21 Aug 2024 13:12:56 -0400 Subject: fix: warn about import assertions when using typescript (#25135) 1. On emit, checks for the prescence of import assertions. 1. Warns and doesn't store the parsed source in the emit cache in this case. --- tests/testdata/run/config_json_import.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/testdata/run') diff --git a/tests/testdata/run/config_json_import.ts b/tests/testdata/run/config_json_import.ts index 9cf1cceaa..7141f1495 100644 --- a/tests/testdata/run/config_json_import.ts +++ b/tests/testdata/run/config_json_import.ts @@ -1,2 +1,2 @@ -import config from "../jsx/deno-jsx.json" assert { type: "json" }; +import config from "../jsx/deno-jsx.json" with { type: "json" }; console.log(config); -- cgit v1.2.3