rsnext/packages/next/shared
Malte Ubl 6da769129e
Reduce hello-world middleware bundle size from 128k to 88k (#35512)
Moves two utility functions from `server/router.ts` into their own file. This avoids the middleware pulling in the full Next.js router into its bundle.

There are probably more opportunities like this, but this is a good start. Middleware should likely be bundled by a non-chunking optimizing compiler.
2022-03-22 14:54:05 +00:00
..
lib Reduce hello-world middleware bundle size from 128k to 88k (#35512) 2022-03-22 14:54:05 +00:00