Skip to content

fix(faster): remove deprecated experiments.lazyBarrel option#11714

Closed
kaigritun wants to merge 1 commit intofacebook:mainfrom
kaigritun:fix/remove-lazy-barrel-deprecation
Closed

fix(faster): remove deprecated experiments.lazyBarrel option#11714
kaigritun wants to merge 1 commit intofacebook:mainfrom
kaigritun:fix/remove-lazy-barrel-deprecation

Conversation

@kaigritun
Copy link

Motivation

Since Rspack 1.7+, the experiments.lazyBarrel option is deprecated and will be removed in Rspack 2.0. The feature is now stable and enabled by default, so the configuration is no longer needed.

This causes a deprecation warning when building:

[Rspack Deprecation] `experiments.lazyBarrel` config is deprecated and will be removed in Rspack v2.0. Lazy barrel is already stable and enabled by default. Remove this option from your Rspack configuration.

Changes

  • Removed the experiments.lazyBarrel configuration and the DISABLE_RSPACK_LAZY_BARREL environment variable check
  • The TODO comment indicated this should be removed after Rspack 1.6+

References

Test Plan

The change is additive (removal of deprecated config). Rspack's lazy barrel optimization continues to work as it's now enabled by default.

Since Rspack 1.7+, the lazyBarrel option is deprecated and will be
removed in Rspack 2.0. The feature is now stable and enabled by default.

Fixes facebook#11688
@meta-cla
Copy link

meta-cla bot commented Feb 6, 2026

Hi @kaigritun!

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 Feb 6, 2026

[V2]

Built without sensitive environment variables

Name Link
🔨 Latest commit 76ae80a
🔍 Latest deploy log https://app.netlify.com/projects/docusaurus-2/deploys/6985a8169d04520008a1dd2c
😎 Deploy Preview https://deploy-preview-11714--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.

@slorber
Copy link
Collaborator

slorber commented Feb 6, 2026

Thanks

We already have a PR for that opened before, so I'm closing this one
#11693

@slorber slorber closed this Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

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

2 participants

Comments