You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently experimenting with Remirror to see if it's a great fit for our project, I've noticed that our bundles included several CSS-in-JS declarations that weren't being removed properly despite it not being used.
Steps to reproduce
Create a Vite React project
Add remirror@remirror/react and @remirror/pm
Use the React integration to build a custom editor, not relying on the built-in WYSIWYG components
Try building the project
Expected results
The resulting build output shouldn't contain any CSS-in-JS code
Summary
I'm currently experimenting with Remirror to see if it's a great fit for our project, I've noticed that our bundles included several CSS-in-JS declarations that weren't being removed properly despite it not being used.
Steps to reproduce
remirror
@remirror/react
and@remirror/pm
Expected results
The resulting build output shouldn't contain any CSS-in-JS code
Actual results
The exact code in question:
remirror/packages/remirror__theme/src/extension-tables-theme.ts
Lines 93 to 232 in ce360d5
The way the IIFE starts indicates that they aren't being used anywhere.
Possible Solution
It seems that only those wrapped in IIFE were not being tree-shaked, can the IIFE removed somehow? or perhaps annotating the IIFE as pure might help?
Screenshot(s)
The text was updated successfully, but these errors were encountered: