1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-29 16:30:56 -05:00
denoland-deno/cli/tests/testdata/compat
Bartek Iwańczuk f77c5701f7
feat(compat): integrate import map and classic resolutions in ESM resolution (#12549)
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
2021-10-28 10:11:38 +02:00
..
fs_promises.mjs feat(unstable): Node CJS and ESM resolvers for compat mode (#12424) 2021-10-18 19:36:28 +02:00
fs_promises.out feat: add --compat flag to provide built-in Node modules (#12293) 2021-10-05 01:35:55 +02:00
globals.out feat(unstable): Node CJS and ESM resolvers for compat mode (#12424) 2021-10-18 19:36:28 +02:00
globals.ts feat(compat): inject Node globals (#12342) 2021-10-06 19:07:04 +02:00
import_map.json feat(compat): integrate import map and classic resolutions in ESM resolution (#12549) 2021-10-28 10:11:38 +02:00
import_map_https_imports.mjs feat(compat): integrate import map and classic resolutions in ESM resolution (#12549) 2021-10-28 10:11:38 +02:00
import_map_https_imports.out feat(compat): integrate import map and classic resolutions in ESM resolution (#12549) 2021-10-28 10:11:38 +02:00
node_fs_promises.mjs feat(unstable): Node CJS and ESM resolvers for compat mode (#12424) 2021-10-18 19:36:28 +02:00
test.txt feat: add --compat flag to provide built-in Node modules (#12293) 2021-10-05 01:35:55 +02:00