1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 09:10:40 -05:00
denoland-deno/cli/tools
Nayeem Rahman cd61c01545
refactor(core): cleanup feature flags for js source inclusion (#19463)
Remove `ExtensionFileSourceCode::LoadedFromFsDuringSnapshot` and feature
`include_js_for_snapshotting` since they leak paths that are only
applicable in this repo to embedders. Replace with feature
`exclude_js_sources`. Additionally the feature
`force_include_js_sources` allows negating it, if both features are set.
We need both of these because features are additive and there must be a
way of force including sources for snapshot creation while still having
the `exclude_js_sources` feature. `force_include_js_sources` is only set
for build deps, so sources are still excluded from the final binary.

You can also specify `force_include_js_sources` on any extension to
override the above features for that extension. Towards #19398.

But there was still the snapshot-from-snapshot situation where code
could be executed twice, I addressed that by making `mod_evaluate()` and
scripts like `core/01_core.js` behave idempotently. This allowed
unifying `ext::init_ops()` and `ext::init_ops_and_esm()` into
`ext::init()`.
2023-06-15 22:50:36 +02:00
..
coverage refactor(cli): remove ProcState - add CliFactory (#18900) 2023-05-01 14:35:23 -04:00
init refactor(init): remove CURRENT_STD_URL (#18375) 2023-03-23 03:11:18 +00:00
repl fix(repl): correctly print string exception (#19391) 2023-06-09 01:13:24 +02:00
vendor perf(cli): conditionally load typescript declaration files (#19392) 2023-06-09 01:13:24 +02:00
bench.rs refactor(core): cleanup feature flags for js source inclusion (#19463) 2023-06-15 22:50:36 +02:00
bundle.rs refactor: helpers methods on TypeCheckMode (#19393) 2023-06-09 01:13:25 +02:00
check.rs refactor(cli): remove ProcState - add CliFactory (#18900) 2023-05-01 14:35:23 -04:00
compile.rs refactor: helpers methods on TypeCheckMode (#19393) 2023-06-09 01:13:25 +02:00
doc.rs perf(cli): conditionally load typescript declaration files (#19392) 2023-06-09 01:13:24 +02:00
fmt.rs refactor(core): bake single-thread assumptions into spawn/spawn_blocking (#19056) 2023-05-14 15:40:01 -06:00
info.rs perf(cli): conditionally load typescript declaration files (#19392) 2023-06-09 01:13:24 +02:00
installer.rs chore(tests): test_util - Add PathRef (#19450) 2023-06-15 22:50:34 +02:00
lint.rs refactor(cli): remove ProcState - add CliFactory (#18900) 2023-05-01 14:35:23 -04:00
mod.rs feat(compile): unstable npm and node specifier support (#19005) 2023-05-10 20:06:59 -04:00
run.rs feat: top level package.json install when node_modules dir is explicitly opted into (#19233) 2023-05-23 18:51:48 -04:00
task.rs fix(npm): run pre and post tasks if present (#19178) 2023-05-18 15:51:17 -04:00
test.rs refactor(core): cleanup feature flags for js source inclusion (#19463) 2023-06-15 22:50:36 +02:00
upgrade.rs chore: upgrade to Rust 1.70.0 (#19345) 2023-06-09 01:13:23 +02:00