feat: move experiments.lazyCompilation to configuration toplevel#11337
feat: move experiments.lazyCompilation to configuration toplevel#11337stormslowly merged 5 commits intomainfrom
Conversation
✅ Deploy Preview for rspack ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
📦 Binary Size-limit
🙈 Size remains the same at 47.64MB |
CodSpeed Performance ReportMerging #11337 will not alter performanceComparing Summary
|
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the lazy compilation configuration by promoting lazyCompilation from an experimental feature (experiments.lazyCompilation) to a top-level configuration option, reflecting the feature's maturity and stability in Rspack.
- Moves
lazyCompilationfromexperiments.lazyCompilationto the top-level configuration - Updates documentation to reflect the new configuration location and deprecates the old path
- Maintains backward compatibility by supporting both configuration paths with deprecation warnings
Reviewed Changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| website/docs/zh/guide/features/lazy-compilation.mdx | Updates Chinese documentation examples to use top-level lazyCompilation instead of experiments.lazyCompilation |
| website/docs/zh/config/lazy-compilation.mdx | Creates new Chinese documentation page for the top-level lazyCompilation configuration |
| website/docs/zh/config/experiments.mdx | Deprecates experiments.lazyCompilation section and redirects to new configuration |
| website/docs/zh/config/_meta.json | Adds lazy-compilation to the configuration navigation |
| website/docs/en/guide/features/lazy-compilation.mdx | Updates English documentation examples to use top-level lazyCompilation |
| website/docs/en/config/lazy-compilation.mdx | Creates new English documentation page for the top-level lazyCompilation configuration |
| website/docs/en/config/experiments.mdx | Deprecates experiments.lazyCompilation section and redirects to new configuration |
| website/docs/en/config/_meta.json | Adds lazy-compilation to the English configuration navigation |
| packages/rspack/src/schema/config.ts | Adds schema validation for top-level lazyCompilation option |
| packages/rspack/src/config/types.ts | Adds type definitions for top-level lazyCompilation and deprecates experimental version |
| packages/rspack/src/config/normalization.ts | Handles normalization of the new top-level lazyCompilation configuration |
| packages/rspack/src/config/defaults.ts | Sets default values for top-level lazyCompilation option |
| packages/rspack/src/builtin-plugin/lazy-compilation/middleware.ts | Updates middleware to support both old and new configuration paths with deprecation warnings |
| packages/rspack/etc/core.api.md | Updates API documentation to reflect type changes |
| packages/rspack-test-tools/tests/legacy-test/MultiCompiler.test.js | Updates test to use new top-level configuration |
| packages/rspack-test-tools/tests/snapshots/Defaults.test.js.snap | Updates test snapshot to include new default configuration |
Co-authored-by: neverland <chenjiahan.jait@bytedance.com>
Co-authored-by: neverland <chenjiahan.jait@bytedance.com>
|
Should we stabilize https://rspack.rs/guide/features/lazy-compilation#integrating-with-custom-server |
Summary
This PR refactors the lazy compilation configuration by promoting
lazyCompilationfrom an experimental featureexperiments.lazyCompilationto a top-level configuration option. This change reflects the maturity and stability of the lazy compilation feature in Rspack.Related links
Checklist