Repository navigation
Conversation
Allow long-running Node embedders to drop the last compilation's module graph and codegen results without unloading the native binding. Based on web-infra-dev#15860 (issue web-infra-dev#15859).
flesler
force-pushed
the
wrkf-4276-release-compilation
branch
from
October 9, 2026 18:30
7045e6a to
00251a4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Cherry-pick of upstream draft web-infra-dev/rspack#15860 (issue #15859) onto
v2.2.6-webflow.0.Adds
Compiler.releaseCompilation()so embedders can drop the last compilation graph afterclose()without unloading the native binding.Linear: WRKF-4276
Single commit for merge. Blocks monorepo follow-up WRKF-4287 until tag
v2.2.6-webflow.1.Changes
release_compilation()on core compiler + NAPI bindingCompiler.releaseCompilation()in@rspack/coretests/rspack-test/compilerCases/release-compilation-after-close/Test plan
pnpm run testintests/rspack-testlocally (9375 passed, includesCompiler.test.mjs)v2.2.6-webflow.1with linux.nodefrom fork release workflow