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
16 lines
600 B
Text
16 lines
600 B
Text
Check [WILDCARD]
|
|
preload.js starts loading
|
|
preload.js finished loading
|
|
import.js starts loading
|
|
import.js finished loading
|
|
Value of __preload__ preload.js
|
|
Value of __import__ import.js
|
|
CPU | [WILDCARD]
|
|
Runtime | Deno [WILDCARD] ([WILDCARD])
|
|
|
|
[WILDCARD]/main_bench.ts
|
|
|
|
| benchmark | time/iter (avg) | iter/s | (min … max) | p75 | p99 | p995 |
|
|
| ----------- | --------------- | ------------- | --------------------- | -------- | -------- | -------- |
|
|
| hello | [WILDCARD] | [WILDCARD] | ([WILDCARD] … [WILDCARD]) | [WILDCARD] | [WILDCARD] | [WILDCARD] |
|
|
|