Fix(core): Remove deprecated experiments.lazyBarrel config for RsPack#11693
Fix(core): Remove deprecated experiments.lazyBarrel config for RsPack#11693VedikaGupt wants to merge 1 commit intofacebook:mainfrom
Conversation
|
Hi @VedikaGupt! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
✅ [V2]Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
|
@slorber @Josh-Cena Hey, can you please let me know if any other changes are required to address this issue or can we check this in? Happy to contribute |
… 1.7+
Pre-flight checklist
Motivation
Rspack 1.6+ enables experiments.lazyBarrel by default, making the explicit configuration unnecessary.
Starting with Rspack 1.7, setting this option triggers a deprecation warning, and it will be removed entirely in Rspack 2.0.
This PR removes the deprecated configuration to avoid warnings and keep the build aligned with current and upcoming Rspack behavior.
Changes
Removed the deprecated experiments.lazyBarrel configuration from packages/docusaurus/src/webpack/base.ts
Removed the DISABLE_RSPACK_LAZY_BARREL environment variable check, which is no longer needed now that the feature is stable and enabled by default
Test Plan
Ran build locally
Verified no behavioral change in the build output
Lazy barrel optimization continues to work as expected via Rspack defaults
Test links
Deploy preview: https://deploy-preview-_____--docusaurus-2.netlify.app/
Related issues/PRs
Fixes #11688