From f34fcd16ea4d504c8a87c0873c65598d70bb1d07 Mon Sep 17 00:00:00 2001 From: Luca Casonato Date: Tue, 9 May 2023 12:37:13 +0200 Subject: fix(core): let V8 drive extension ESM loads (#18997) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This now allows circular imports across extensions. Instead of load + eval of all ESM files in declaration order, all files are only loaded. Eval is done recursively by V8, only evaluating files that are listed in `Extension::esm_entry_point` fields. --------- Co-authored-by: Bartek IwaƄczuk --- cli/js/99_main.js | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 cli/js/99_main.js (limited to 'cli/js') diff --git a/cli/js/99_main.js b/cli/js/99_main.js new file mode 100644 index 000000000..dc9d74fb0 --- /dev/null +++ b/cli/js/99_main.js @@ -0,0 +1,3 @@ +// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. +import "ext:cli/40_testing.js"; +import "ext:cli/runtime/js/99_main.js"; -- cgit v1.2.3