mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 04:39:10 +00:00

This commit adds initial support for `--preload` (aliased to `--import`) flag that allows to load and execute multiple ES modules before the entry point modules is executed. This command is available in `deno run`, `deno test` and `deno bench` subcommands. Closes https://github.com/denoland/deno/issues/29776
6 lines
154 B
JavaScript
6 lines
154 B
JavaScript
console.log("import.js starts loading");
|
|
|
|
setTimeout(() => {
|
|
globalThis.__import__ = "import.js";
|
|
console.log("import.js finished loading");
|
|
}, 500);
|