mirror of
https://github.com/denoland/deno.git
synced 2024-12-11 10:07:54 -05:00
44f8b05f5b
This commit adds automatic expansion of "imports" field in "deno.json" file. If "npm:" or "jsr:" imports are encountered we automatically try to add a "directory" remapping. Previously users had to specify entries for both `foo` and `foo/` to be able to import like `import { symbol1 } from "foo";` and `import { symbol2 } from "foo/some_file.js"`: ``` { "imports": { "foo": "npm:@foo/bar", "foo/": "npm:/@foo/bar/", } ``` With this change users can only add entry for `foo`: ``` { "imports": { "foo": "npm:@foo/bar", } ``` The entry for `foo/` will be provided automatically. Similarly if user provides "directory" remapping explicitly, we will not overwrite it. |
||
---|---|---|
.. | ||
dynamic_imports | ||
dynamic_imports_tmp_lit | ||
node_modules_symlink_outside | ||
npm_fs | ||
vfs_implicit_read_permission | ||
workers | ||
args.ts | ||
check_local_by_default.ts | ||
check_local_by_default2.ts | ||
standalone_error.ts | ||
standalone_error_module_with_imports_1.ts | ||
standalone_error_module_with_imports_2.ts | ||
standalone_follow_redirects.ts | ||
standalone_follow_redirects_2.js | ||
standalone_import_datauri.ts | ||
standalone_import_map.json | ||
standalone_import_map.ts | ||
standalone_import_map_config.json | ||
standalone_runtime_flags.ts | ||
unstable_features.ts |