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
importing anything from @remirror/react adds 1917 modules for next dev server
@remirror/react exports all of it sub-packages in a single barrel file, next dev server is requiring all these exports
Steps to reproduce
Codesandbox, you can go to app/page.tsx and remove the import and restart the dev server to see the different in module imports
Expected results
Too not add soo many modules for dev server to load 😢
Needs some rearchitecting around how it imports/exports
As a temp fix in a project at work, I managed to reduce this issue by just installing a sub-package, but those sub packages also export a lot of unnecessary things, although not as bad as this main package
Screenshot(s)
The text was updated successfully, but these errors were encountered:
Summary
importing anything from @remirror/react adds 1917 modules for next dev server
@remirror/react exports all of it sub-packages in a single barrel file, next dev server is requiring all these exports
Steps to reproduce
Codesandbox, you can go to app/page.tsx and remove the import and restart the dev server to see the different in module imports
Expected results
Too not add soo many modules for dev server to load 😢
Actual results
Possible Solution
How we optimized package imports in Next.js - probably relevant
Needs some rearchitecting around how it imports/exports
As a temp fix in a project at work, I managed to reduce this issue by just installing a sub-package, but those sub packages also export a lot of unnecessary things, although not as bad as this main package
Screenshot(s)
The text was updated successfully, but these errors were encountered: