Repository navigation
Replies: 2 comments 4 replies
|
The change was just organizational, since before we had all preview server dependencies as I suppose this is the trade-off for the change of architecture we made, but for now I don't think we can make a change to improve this much, but this shouldn't affect bundle sizes or dependencies installed in Definitely open to ideas. |
|
Pulling a full Next.js app (~300MB of deps) by default feels wrong. Most users just want to render emails, not install a dev server. IMO preview-related deps should not be regular dependencies. Options that would already be a big improvement: |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Not sure if this is really a question or not, but I upgraded to the latest version and needed to install the new preview server, and npm installed ~300 packages more than the old server. Seems really excessive, especially since there doesnt seem to be a huge change in the server itself when it got stripped out into its own package. Are there maybe dev dependencies accidentally being installed?
So i run
npm ci && npm dedupewhile having react email 4.0.17 installed (which includes a preview server),Then, I run
npm i -D @react-email/preview-server react-email@latestand getadded 316 packages, removed 3 packages. Running dedupe removes 28 packages, but still +288 packages.All reactions