From b64ec7926831896f4e43b685891111409de45e85 Mon Sep 17 00:00:00 2001 From: Andreu Botella Date: Sun, 19 Mar 2023 00:43:07 +0100 Subject: feat(compile): Enable multiple roots for a standalone module graph (#17663) This change will enable dynamic imports and web workers to use modules not reachable from the main module, by passing a list of extra side module roots as options to `deno compile`. This can be done by specifying "--include" flag that accepts a file path or a URL. This flag can be specified multiple times, to include several modules. The modules specified with "--include" flag, will be added to the produced "eszip". --- cli/tests/testdata/compile/dynamic_imports/import_path | 1 + 1 file changed, 1 insertion(+) create mode 100644 cli/tests/testdata/compile/dynamic_imports/import_path (limited to 'cli/tests/testdata/compile/dynamic_imports/import_path') diff --git a/cli/tests/testdata/compile/dynamic_imports/import_path b/cli/tests/testdata/compile/dynamic_imports/import_path new file mode 100644 index 000000000..98222a208 --- /dev/null +++ b/cli/tests/testdata/compile/dynamic_imports/import_path @@ -0,0 +1 @@ +./import1.ts -- cgit v1.2.3