mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 20:59: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
7 lines
343 B
TypeScript
7 lines
343 B
TypeScript
// @ts-ignore These are provided by the preload scripts, but we don't provide typings for them
|
|
console.log("Value of __preload__", globalThis.__preload__);
|
|
// @ts-ignore These are provided by the preload scripts, but we don't provide typings for them
|
|
console.log("Value of __import__", globalThis.__import__);
|
|
|
|
Deno.bench("hello", () => {
|
|
});
|