Replies: 5 comments 7 replies
|
You can, in your dev environment, use next@canary, and then run |
This comment was marked as low quality.
This comment was marked as low quality.
|
In our repository I noticed a big difference in size between webpack and turbopack due to the usage of When I changed |
|
See also #96040 for a clear root-cause and proposal to fix what I think is being discussed on this thread. |
|
We are also running into a similar issue here, but this time it's with the use of Attempts to use the suggested Our last resort is to force Next.js to be built with webpack in production, which results in sufficient size savings compared to Turbopack that lowers the build size beyond the hard limit set by Amplify, while still allowing local dev to use Turbopack due to its speed. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Build with webpack: 0.57 mb transferred --- 1.8 mb resources
Build with turbopack: 2.6mb transferred --- 8.4 mb resources
As recorded by Chrome dev tools network tab, filtered by js only. First page load.
Same exact codebase. Simply running "next build" vs "next build --webpack"
Turbopack is 4.6x larger??
There's gotta be something wrong here because this is atrocious.. please advise.
Additional information
No response
Example
No response
All reactions