mirror of
https://github.com/denoland/deno.git
synced 2024-12-23 23:59:59 -05:00
dd4570ed85
Adds a lazily created code cache to `deno compile` by default. The code cache is created on first run to a single file in the temp directory and is only written once. After it's been written, the code cache becomes read only on subsequent runs. Only the modules loaded during startup are cached (dynamic imports are not code cached). The code cache can be disabled by compiling with `--no-code-cache`.
22 lines
537 B
Text
22 lines
537 B
Text
{
|
|
"tempDir": true,
|
|
"steps": [{
|
|
"if": "unix",
|
|
"args": "compile --output no_code_cache --no-code-cache --log-level=debug main.ts",
|
|
"output": "[WILDCARD]"
|
|
}, {
|
|
"if": "unix",
|
|
"commandName": "./no_code_cache",
|
|
"args": [],
|
|
"output": "main.out"
|
|
}, {
|
|
"if": "windows",
|
|
"args": "compile --output no_code_cache.exe --no-code-cache --log-level=debug main.ts",
|
|
"output": "[WILDCARD]"
|
|
}, {
|
|
"if": "windows",
|
|
"commandName": "./no_code_cache.exe",
|
|
"args": [],
|
|
"output": "main.out"
|
|
}]
|
|
}
|