rspack
rspack copied to clipboard
[Tracking]: affected-based incremental rebuild
RFC: https://github.com/web-infra-dev/rspack/discussions/8243 Docs: https://rspack.dev/config/experiments#experimentsincremental
This issue tracks the progress of affected-based incremental rebuild:
- proof of concept, implement for some passes
- more tests, enable for bytedance internal projects, stabilize for some passes (👈 we are here)
- stabilize all passes and enable by default
The passes we planned to support:
- make (already implemented before, but may need some refactors)
- provided exports (done): https://github.com/web-infra-dev/rspack/pull/7703
- infer async modules (done): https://github.com/web-infra-dev/rspack/pull/7927
- collect dependencies diagnostics (done): https://github.com/web-infra-dev/rspack/pull/8127
- side effects (done): https://github.com/web-infra-dev/rspack/pull/8799
- build chunk graph (done @JSerFeng): https://github.com/web-infra-dev/rspack/pull/7721
- module ids (done): https://github.com/web-infra-dev/rspack/pull/8593
- chunk ids (done): https://github.com/web-infra-dev/rspack/pull/8652
- modules hashes (done): https://github.com/web-infra-dev/rspack/pull/7684
- modules codegen (done): https://github.com/web-infra-dev/rspack/pull/7681
- modules runtime requirements (done): https://github.com/web-infra-dev/rspack/pull/7684
- chunks runtime requirements (done): https://github.com/web-infra-dev/rspack/pull/8367
- chunks hash (done): https://github.com/web-infra-dev/rspack/pull/8367
- chunks render (done): https://github.com/web-infra-dev/rspack/pull/8440
- emit assets (already implemented before, but may need some refactors)
Currently you can enable this by experiments.incremental = true, feel free to report bugs to us.