Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[lexical-website] Bug Fix: Fix vite.config.ts for gallery examples #7290

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

etrepum
Copy link
Collaborator

@etrepum etrepum commented Mar 4, 2025

Description

Since typescript configs are used the conditional import approach (#7208) didn't work for conditional vite plugins, since they still had to exist on disk for rollup to process it. This splits the configuration for all example projects into two files, vite.config.ts and vite.config.monorepo.ts which works around the problem.

Test plan

Before

Gallery examples didn't work on stackblitz, because only the example was checked out and not the whole repo

https://lexical.dev/gallery

After

Gallery examples work: https://lexical-git-fork-etrepum-fix-gallery-vite-config-fbopensource.vercel.app/gallery

Verified

This commit was signed with the committer’s verified signature.
heifner Kevin Heifner
Copy link

vercel bot commented Mar 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2025 11:30pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2025 11:30pm

@facebook-github-bot facebook-github-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 Mar 4, 2025
@etrepum etrepum added this pull request to the merge queue Mar 4, 2025
Merged via the queue into facebook:main with commit 6416a25 Mar 4, 2025
38 checks passed
@etrepum etrepum mentioned this pull request Mar 11, 2025
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.

None yet

3 participants