From 88c4d3145b1e964387be487090bb6ec0a572b90f Mon Sep 17 00:00:00 2001 From: Kitson Kelly Date: Sat, 7 Nov 2020 15:04:22 +1100 Subject: fix(cli): allow remapping to locals for import map (#8262) Fixes #7723 --- cli/tests/module_graph/file_tests-b-mod.js | 1 + cli/tests/module_graph/file_tests-importremap.ts | 3 +++ cli/tests/module_graph/https_deno.land-x-a-mod.ts | 1 + 3 files changed, 5 insertions(+) create mode 100644 cli/tests/module_graph/file_tests-b-mod.js create mode 100644 cli/tests/module_graph/file_tests-importremap.ts create mode 100644 cli/tests/module_graph/https_deno.land-x-a-mod.ts (limited to 'cli/tests/module_graph') diff --git a/cli/tests/module_graph/file_tests-b-mod.js b/cli/tests/module_graph/file_tests-b-mod.js new file mode 100644 index 000000000..59d168993 --- /dev/null +++ b/cli/tests/module_graph/file_tests-b-mod.js @@ -0,0 +1 @@ +export const b = "b"; diff --git a/cli/tests/module_graph/file_tests-importremap.ts b/cli/tests/module_graph/file_tests-importremap.ts new file mode 100644 index 000000000..17f012673 --- /dev/null +++ b/cli/tests/module_graph/file_tests-importremap.ts @@ -0,0 +1,3 @@ +import * as a from "https://deno.land/x/a/mod.ts"; + +console.log(a); diff --git a/cli/tests/module_graph/https_deno.land-x-a-mod.ts b/cli/tests/module_graph/https_deno.land-x-a-mod.ts new file mode 100644 index 000000000..1e334d399 --- /dev/null +++ b/cli/tests/module_graph/https_deno.land-x-a-mod.ts @@ -0,0 +1 @@ +export * as b from "../b/mod.js"; -- cgit v1.2.3