Skip to content

[lexical-react] Bug Fix: Include react-error-boundary and @floating-ui/react in WWW bundle - #7852

Merged
etrepum merged 1 commit into
meta:mainfrom
etrepum:www-externals
Sep 23, 2025
Merged

etrepum merged 1 commit into
meta:mainfrom
etrepum:www-externals

Conversation

@etrepum

@etrepum etrepum commented Sep 23, 2025 •

Copy link
Copy Markdown
Collaborator

Description

react-error-boundary and @floating-ui/react are external in OSS but should be bundled in WWW. This bundles them in that environment, and ignores any "use client" warnings.

Test plan

Can only be reproduced in the www build at Meta, but npm run build-www works without warning and you can confirm that it does not use an external import when inspecting the build artifacts (e.g. packages/lexical-react/dist/LexicalErrorBoundary.dev.js)

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 23, 2025
@etrepum
etrepum added this pull request to the merge queue Sep 23, 2025
Merged via the queue into meta:main with commit dbf3867 Sep 23, 2025
@vercel

vercel Bot commented Sep 23, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
lexical Ready Ready Preview Comment Sep 23, 2025 3:59pm
lexical-playground Ready Ready Preview Comment Sep 23, 2025 3:59pm

This branch was successfully deployed

2 active deployments
Preview – lexical-playground — 7acd0726 Deployed Sep 23, 2025 by vercel[bot]
Preview – lexical — 7acd0726 Deployed Sep 23, 2025 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants