From f6d6b24506410816833d802e1a8d9cd704f73289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Wed, 17 Feb 2021 14:32:57 +0100 Subject: feat: support loading import map from URL (#9519) This commit adds support for loading import maps from URLs, both remote and local. This feature is supported in CLI flag as well as in runtime compiler API. --- cli/tests/import_maps/import_map_remote.json | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 cli/tests/import_maps/import_map_remote.json (limited to 'cli/tests/import_maps/import_map_remote.json') diff --git a/cli/tests/import_maps/import_map_remote.json b/cli/tests/import_maps/import_map_remote.json new file mode 100644 index 000000000..51f90f69c --- /dev/null +++ b/cli/tests/import_maps/import_map_remote.json @@ -0,0 +1,9 @@ +{ + "imports": { + "moment": "./moment/moment.ts", + "moment/": "./moment/", + "lodash": "./lodash/lodash.ts", + "lodash/": "./lodash/", + "https://www.unpkg.com/vue/dist/vue.runtime.esm.js": "./vue.ts" + } +} -- cgit v1.2.3