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

Dont sync empty files #6004

Closed
wants to merge 1 commit into from
Closed

Dont sync empty files #6004

wants to merge 1 commit into from

Conversation

acywatson
Copy link
Contributor

Flow files that contain only comments are copied over as empty. This is a problem for our internal linters. I couldn't figure out how to make this work in rewriteImports because I don't understand the hermes-transform API, but we can ignore empty files and that should prevent this issue.

@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 May 1, 2024
Copy link

vercel bot commented May 1, 2024

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

Name Status Preview Comments Updated (UTC)
lexical ✅ Ready (Inspect) Visit Preview May 1, 2024 11:06pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 1, 2024 11:06pm

Copy link

github-actions bot commented May 1, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
packages/lexical/dist/Lexical.js 23.69 KB (0%) 474 ms (0%) 80 ms (+273.66% 🔺) 554 ms
packages/lexical-rich-text/dist/LexicalRichText.js 34 KB (0%) 680 ms (0%) 89 ms (+28.06% 🔺) 769 ms
packages/lexical-plain-text/dist/LexicalPlainText.js 33.94 KB (0%) 679 ms (0%) 98 ms (+64.89% 🔺) 777 ms

@etrepum
Copy link
Collaborator

etrepum commented May 1, 2024

The latest commit in #5999 should address this, it ensures there's always at least one statement in the code before handing it over to hermes and then it undoes that workaround before writing it to disk

@acywatson acywatson closed this May 1, 2024
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

4 participants