mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
999cbfb52b
This commit adds new "import.meta.resolve()" API which allows to resolve specifiers relative to the module the API is called in. This API supports resolving using import maps.
9 lines
526 B
Text
9 lines
526 B
Text
import_meta2 [WILDCARD]import_meta2.ts false
|
|
import_meta [WILDCARD]import_meta.ts true
|
|
Resolving ./foo.js file:///[WILDCARD]/foo.js
|
|
Resolving bare from import map https://example.com/
|
|
Resolving https://example.com/rewrite from import map https://example.com/rewritten
|
|
Resolving without a value from import map https://example.com/PASS-undefined
|
|
Resolving 1 from import map https://example.com/PASS-1
|
|
Resolving null from import map https://example.com/PASS-null
|
|
Resolving object from import map https://example.com/PASS-object
|