mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 07:44:48 -05:00
b5051e25c2
This commit deprecates "import assertions" proposal that has been replaced with "import attributes". Any time an import assertion is encountered a warning will be printed to the terminal. This warning will be printed for both local and remote files (ie. user code and dependencies). Import assertions support will be removed in Deno 2.
7 lines
210 B
Text
7 lines
210 B
Text
⚠️ Import assertions are deprecated. Use `with` keyword, instead of 'assert' keyword.
|
|
|
|
import foo from "./main.json" assert { type: "json" };
|
|
|
|
at [WILDCARD]import_assertions/main.js:1:30
|
|
|
|
{ foo: "foo" }
|