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

fix: Mark the bubble/floating menu extensions as side effect free #2677

Merged
merged 1 commit into from
Apr 9, 2022

Conversation

rfgamaral
Copy link
Contributor

This is very similar to #2361, but also adds sideEffects: false to @tiptap/extension-bubble-menu and @tiptap/extension-floating-menu, which are @tiptap/react dependencies.

Without this change, importing anything from the @tiptap/react pulls and bundles the whole package, even if we are not using the BubbleMenu or the FloatingMenu components.

For reference: https://webpack.js.org/guides/tree-shaking

@netlify
Copy link

netlify bot commented Apr 4, 2022

Deploy Preview for tiptap-embed ready!

Name Link
🔨 Latest commit 172513c
🔍 Latest deploy log https://app.netlify.com/sites/tiptap-embed/deploys/624ad5f39e230e0008a74f70
😎 Deploy Preview https://deploy-preview-2677--tiptap-embed.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@bdbch bdbch self-requested a review April 9, 2022 07:44
Copy link
Contributor

@bdbch bdbch left a comment

Choose a reason for hiding this comment

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

Great one. Thanks for your pull request.💪

@bdbch bdbch merged commit fe815ad into ueberdosis:main Apr 9, 2022
@rfgamaral rfgamaral deleted the tree-shaking-improvements branch May 17, 2022 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants