mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
f77c5701f7
This commit integrates import map and "classic" resolutions in the "--compat" mode when using ES modules; in effect "http:", "https:" and "blob:" imports now work in compat mode. The algorithm works as follows: 1. If there's an import map, try to resolve using it and if succeeded return the specifier 2. Try to resolve using "Node ESM resolution", and if succeeded return the specifier 3. Fall back to regular ESM resolution |
||
---|---|---|
.. | ||
fs_promises.mjs | ||
fs_promises.out | ||
globals.out | ||
globals.ts | ||
import_map.json | ||
import_map_https_imports.mjs | ||
import_map_https_imports.out | ||
node_fs_promises.mjs | ||
test.txt |