summaryrefslogtreecommitdiff
path: root/cli/npm/managed/mod.rs
diff options
context:
space:
mode:
authorNayeem Rahman <nayeemrmn99@gmail.com>2024-01-22 12:37:25 +0000
committerGitHub <noreply@github.com>2024-01-22 12:37:25 +0000
commitbc92f872988fd8b9cdf2ae1479278789911237a5 (patch)
tree1eb4434b041edc3d159063f4f1dee1ce86a98997 /cli/npm/managed/mod.rs
parent8f767627938ef10802864419061e58a8a75db567 (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/npm/managed/mod.rs')
0 files changed, 0 insertions, 0 deletions