Skip to content

[lexical-playground] Bug Fix: Build dev playground in development mode#8565

Merged
etrepum merged 1 commit into
facebook:mainfrom
etrepum:claude/wizardly-ptolemy-bkva1
May 26, 2026
Merged

[lexical-playground] Bug Fix: Build dev playground in development mode#8565
etrepum merged 1 commit into
facebook:mainfrom
etrepum:claude/wizardly-ptolemy-bkva1

Conversation

@etrepum

@etrepum etrepum commented May 26, 2026

Copy link
Copy Markdown
Collaborator

Description

I'm pretty sure we had playground building in dev a while ago, which made debugging and issue reports easier. This restores that.

vite build defaults to --mode production, so the build-dev script (used by build-vercel to deploy playground.lexical.dev) was actually producing a production build: terser-minified, with Lexical invariant messages replaced by "Minified Lexical error #NNN" codes and DEV warnings stripped. This made the public playground's tracebacks unreadable despite being intended as the non-minified dev environment.

Pass --mode development so the playground resolves the development builds of the Lexical packages and keeps full error messages, and set minify: false for non-production builds (Vite's default minifier is esbuild, which would otherwise still minify the output).

`vite build` defaults to `--mode production`, so the `build-dev` script
(used by `build-vercel` to deploy playground.lexical.dev) was actually
producing a production build: terser-minified, with Lexical invariant
messages replaced by "Minified Lexical error #NNN" codes and __DEV__
warnings stripped. This made the public playground's tracebacks
unreadable despite being intended as the non-minified dev environment.

Pass `--mode development` so the playground resolves the development
builds of the Lexical packages and keeps full error messages, and set
`minify: false` for non-production builds (Vite's default minifier is
esbuild, which would otherwise still minify the output).

https://claude.ai/code/session_011e3NgM9ZdKcW6YQ9yR3TmZ
@vercel

vercel Bot commented May 26, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
lexical Ready Ready Preview, Comment May 26, 2026 1:18am
lexical-playground Ready Ready Preview, Comment May 26, 2026 1:18am

Request Review

@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 May 26, 2026
@etrepum etrepum marked this pull request as ready for review May 26, 2026 02:20
@etrepum etrepum added this pull request to the merge queue May 26, 2026
Merged via the queue into facebook:main with commit ed6fbc9 May 26, 2026
42 checks passed
@etrepum etrepum mentioned this pull request May 28, 2026
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.

3 participants