Skip to content

Fix(core): Remove deprecated experiments.lazyBarrel config for RsPack#11693

Open
VedikaGupt wants to merge 1 commit intofacebook:mainfrom
VedikaGupt:fix/remove-deprecated-lazybarrel-config
Open

Fix(core): Remove deprecated experiments.lazyBarrel config for RsPack#11693
VedikaGupt wants to merge 1 commit intofacebook:mainfrom
VedikaGupt:fix/remove-deprecated-lazybarrel-config

Conversation

@VedikaGupt
Copy link

… 1.7+

Pre-flight checklist

  • I have read the Contributing Guidelines on pull requests.
  • If this is a code change: I have written unit tests and/or added dogfooding pages to fully verify the new behavior.
  • If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

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

@meta-cla
Copy link

meta-cla bot commented Jan 28, 2026

Hi @VedikaGupt!

Thank you for your pull request and welcome to our community.

Action Required

In 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.

Process

In 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 CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@netlify
Copy link

netlify bot commented Jan 28, 2026

[V2]

Built without sensitive environment variables

Name Link
🔨 Latest commit bd865f2
🔍 Latest deploy log https://app.netlify.com/projects/docusaurus-2/deploys/697a2cb378291b0008acada3
😎 Deploy Preview https://deploy-preview-11693--docusaurus-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@meta-cla
Copy link

meta-cla bot commented Jan 28, 2026

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

@meta-cla meta-cla bot added the CLA Signed Signed Facebook CLA label Jan 28, 2026
@VedikaGupt
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecation warning on experiments.lazyBarrel in Rspack 1.7+ in @docusaurus/faster

1 participant