diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2024-01-22 12:37:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-22 12:37:25 +0000 |
commit | bc92f872988fd8b9cdf2ae1479278789911237a5 (patch) | |
tree | 1eb4434b041edc3d159063f4f1dee1ce86a98997 /cli/node.rs | |
parent | 8f767627938ef10802864419061e58a8a75db567 (diff) |
fix(runtime): only discard extension sources if a snapshot is provided (#22023)
Fixes #21928.
We have a code path which empties the extension sources because they're
expected to be pre-executed in the snapshot. Instead of using
conditional compilation for that, we now just check if a snapshot was
provided.
Removes the `dont_use_runtime_snapshot` feature. We didn't allow not
providing a snapshot unless this feature was provided, now we always do.
Adds the `only_snapshotted_js_sources` feature for us to use in CLI.
This asserts that a snapshot is provided and gates the runtime
transpilation code so it isn't included in the executable.
Diffstat (limited to 'cli/node.rs')
0 files changed, 0 insertions, 0 deletions