From 0dc89c0a793fa80b4c3ef89128fc674ec62b72a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 1 Mar 2021 12:41:22 +0100 Subject: feat: stabilise import maps (#9526) This commit stabilises import maps by removing requirement on "--unstable" flag when "--import-map" flag is used. --- docs/linking_to_external_code/import_maps.md | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'docs/linking_to_external_code') diff --git a/docs/linking_to_external_code/import_maps.md b/docs/linking_to_external_code/import_maps.md index 3703b214e..c00aa0290 100644 --- a/docs/linking_to_external_code/import_maps.md +++ b/docs/linking_to_external_code/import_maps.md @@ -1,19 +1,9 @@ ## Import maps -> This is an unstable feature. Learn more about -> [unstable features](../runtime/stability.md). - Deno supports [import maps](https://github.com/WICG/import-maps). You can use import maps with the `--import-map=` CLI flag. -Current limitations: - -- single import map. -- no fallback URLs. -- Deno does not support `std:` namespace. -- supports only `file:`, `http:` and `https:` schemes. - Example: **import_map.json** @@ -37,7 +27,7 @@ console.log(red("hello world")); Then: ```shell -$ deno run --import-map=import_map.json --unstable color.ts +$ deno run --import-map=import_map.json color.ts ``` To use starting directory for absolute imports: -- cgit v1.2.3