diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2021-03-01 12:41:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-01 12:41:22 +0100 |
commit | 0dc89c0a793fa80b4c3ef89128fc674ec62b72a3 (patch) | |
tree | 35cc078edd468fdf7131bd076fef8a72ec4c74ce /docs/linking_to_external_code/import_maps.md | |
parent | 7cd14f97c9300357475e3e461fa57cbb7ec5bfec (diff) |
feat: stabilise import maps (#9526)
This commit stabilises import maps by removing requirement
on "--unstable" flag when "--import-map" flag is used.
Diffstat (limited to 'docs/linking_to_external_code/import_maps.md')
-rw-r--r-- | docs/linking_to_external_code/import_maps.md | 12 |
1 files changed, 1 insertions, 11 deletions
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=<FILE>` 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: |