Skip to content

feat: compiler.run add options to set modifiedFiles and removedFiles#9475

Merged
jerrykingxyz merged 2 commits intomainfrom
jerry/compiler
Feb 27, 2025
Merged

feat: compiler.run add options to set modifiedFiles and removedFiles#9475
jerrykingxyz merged 2 commits intomainfrom
jerry/compiler

Conversation

@jerrykingxyz
Copy link
Contributor

@jerrykingxyz jerrykingxyz commented Feb 26, 2025

Summary

Rspack compiler.run has the same functionality as webpack, the first call will cold start the build, subsequent calls will rebuild using the memory cache. The difference is that Rspack relies on compiler.modifiedFiles and compiler.removedFiles to invalidate the memory cache.

This PR will add a params to allow user to set compiler.modifiedFiles and compiler.removedFiles when call run.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@github-actions github-actions bot added team The issue/pr is created by the member of Rspack. release: feature release: feature related release(mr only) labels Feb 26, 2025
@netlify
Copy link

netlify bot commented Feb 26, 2025

Deploy Preview for rspack canceled.

Name Link
🔨 Latest commit 53c434a
🔍 Latest deploy log https://app.netlify.com/sites/rspack/deploys/67c0300ebb31c100083ecc01

@codspeed-hq
Copy link

codspeed-hq bot commented Feb 26, 2025

CodSpeed Performance Report

Merging #9475 will not alter performance

Comparing jerry/compiler (53c434a) with main (a3b9472)

Summary

✅ 7 untouched benchmarks

@jerrykingxyz jerrykingxyz changed the title feat: compiler.run support set modifiedFiles and removedFiles feat: add compiler.runWithParams Feb 27, 2025
@jerrykingxyz jerrykingxyz changed the title feat: add compiler.runWithParams feat: compiler.run add options to set modifiedFiles and removedFiles Feb 27, 2025
@jerrykingxyz jerrykingxyz enabled auto-merge (squash) February 27, 2025 09:33
@jerrykingxyz jerrykingxyz merged commit 0d11418 into main Feb 27, 2025
27 checks passed
@jerrykingxyz jerrykingxyz deleted the jerry/compiler branch February 27, 2025 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release: feature release: feature related release(mr only) team The issue/pr is created by the member of Rspack.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants