diff options
| author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2022-07-18 20:05:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-18 20:05:26 +0200 |
| commit | 999cbfb52bc42c58467e3592d5fead9c4ee8a2c1 (patch) | |
| tree | 5f5336420b675e15cfaa44cf205171623a3f4ab1 /cli/tests/testdata/import_meta.importmap.json | |
| parent | 0d73eb3dd91b5b34bb6c38a25a4e6aac411d38f3 (diff) | |
feat: import.meta.resolve() (#15074)
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.
Diffstat (limited to 'cli/tests/testdata/import_meta.importmap.json')
| -rw-r--r-- | cli/tests/testdata/import_meta.importmap.json | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cli/tests/testdata/import_meta.importmap.json b/cli/tests/testdata/import_meta.importmap.json new file mode 100644 index 000000000..f8c056afd --- /dev/null +++ b/cli/tests/testdata/import_meta.importmap.json @@ -0,0 +1,11 @@ +{ + "imports": { + "bare": "https://example.com/", + "https://example.com/rewrite": "https://example.com/rewritten", + + "1": "https://example.com/PASS-1", + "null": "https://example.com/PASS-null", + "undefined": "https://example.com/PASS-undefined", + "[object Object]": "https://example.com/PASS-object" + } +} |
