You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains 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
Make will not always rebuild all of failed module and failed dependencies when recompile. The MakeArtifact will save make_failed_module and make_failed_dependencies as statistical data, which are only used to find failed module and failed dependencies as indexes.
Add factorize_info to all of ModuleDependency and ContextDependency, and FactorizeInfo will save *_dependencies and diagnostics like Module.BuildInfo (PS. no need to save those info if factorize success).
Modified and deleted files will rebuild the affected make_failed_dependencies instead of all make_failed_dependencies.
implCutout{fn cutout_artifact(..){match param {
..
MakeParam::RemovedFiles(files){
..
for dep_id in &artifact.make_failed_dependencies {
let dep = module_graph
.dependency_by_id(dep_id).expect("should have dependency");let info = FactorizeInfo::get_from(dep).expect("should have factorize info");if info.depends_on(&files){
force_build_deps.insert(*dep_id);}}}}}}
A heads-up, this is a breaking change and it might affect your current performance baseline a bit. But here's the exciting part - it's packed with new, cool features and promises improved result stability 🥳! Curious about what's new? Visit our releases page to delve into all the awesome details about this new version.
jerrykingxyz
changed the title
refactor: make failed modules and dependencies support incremental
refactor: incremental rebuild make failed modules and dependencies
Feb 20, 2025
teamThe issue/pr is created by the member of Rspack.
2 participants
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
Checklist