next.js
b2ac41c7 - Fix unexpected polyfills in edge-runtime (#45601)

Commit
2 years ago
Fix unexpected polyfills in edge-runtime (#45601) This cuts the edge bundle sizes in half for app dir specifically and also reduces the size for pages. This also ensures we don't regress in the future as it stops allowing fallback polyfills from webpack with the edge runtime which is what let this slip through. The specific polyfills that were causing bloat in `app-render` were - `stream-browserify` added `48kB` - `crypto-browserify` added `355kB` <details> <summary>Before</summary> ![next-v13 1 7-canary 5](https://user-images.githubusercontent.com/22380829/216898959-f610aa01-2198-4653-a4bd-8090cf9802aa.png) </details> <details> <summary>After</summary> ![next-on-edge-fixes](https://user-images.githubusercontent.com/22380829/216898986-836804d7-187c-4ae7-93a4-071995c5c87a.png) </details>
Author
Parents
Loading