1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-22 07:14:47 -05:00
denoland-deno/cli/ops
Nayeem Rahman c1c8eb3d55
build: allow disabling snapshots for dev (#20048)
Closes #19399 (running without snapshots at all was suggested as an
alternative solution).

Adds a `__runtime_js_sources` pseudo-private feature to load extension
JS sources at runtime for faster development, instead of building and
loading snapshots or embedding sources in the binary. Will only work in
a development environment obviously.

Try running `cargo test --features __runtime_js_sources
integration::node_unit_tests::os_test`. Then break some behaviour in
`ext/node/polyfills/os.ts` e.g. make `function cpus() {}` return an
empty array, and run it again. Fix and then run again. No more build
time in between.
2023-08-06 01:47:15 +02:00
..
bench.rs fix(bench): run warmup benchmark to break JIT bias (#19844) 2023-07-17 21:17:28 +00:00
mod.rs build: allow disabling snapshots for dev (#20048) 2023-08-06 01:47:15 +02:00
testing.rs refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00