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

Transpile optional catch binding #5048

Merged
merged 4 commits into from
Sep 25, 2023
Merged

Transpile optional catch binding #5048

merged 4 commits into from
Sep 25, 2023

Conversation

zurfyx
Copy link
Member

@zurfyx zurfyx commented Sep 25, 2023

My understanding is that "target": "ES2019", should do the trick, but it doesn't.

This additional babel config does it but unsure why I need to import separately..

Closes #5037

Screenshot 2023-09-25 at 3 56 53 PM

@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 Sep 25, 2023
@vercel
Copy link

vercel bot commented Sep 25, 2023

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 Sep 25, 2023 8:18pm
lexical-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 25, 2023 8:18pm

@github-actions
Copy link

github-actions bot commented Sep 25, 2023

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
packages/lexical/dist/Lexical.js 28.27 KB (0%) 566 ms (0%) 287 ms (+0.4% 🔺) 853 ms
packages/lexical-rich-text/dist/LexicalRichText.js 39.57 KB (0%) 792 ms (0%) 569 ms (+123.56% 🔺) 1.4 s
packages/lexical-plain-text/dist/LexicalPlainText.js 39.54 KB (-0.01% 🔽) 791 ms (-0.01% 🔽) 209 ms (-40.59% 🔽) 1000 ms

@@ -999,6 +1000,7 @@
"version": "7.18.6",
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz",
"integrity": "sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==",
"deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-catch-binding instead.",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use the not deprecated one?

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.

Bug: Crash on older browsers
3 participants