Common chunks in serverless page bundles #10456
-
As I understand it there is quite a bit of overlap / duplicated code between each serverless page bundle, where each base file at least includes This does not pose a problem when you deploy one Lambda Fn per serverless page bundle (like Now and serverless-nextjs-plugin do. However for this project I've been maintaining for a while now is not possible to deploy one Lambda Fn. per page as it uses Lambda@Edge behind the scenes where doing this isn't possible. Is it possible to output common chunks between sls page bundles? This would considerably reduce duplication. Considering the next framework is pushing so much for serverless this change would give library maintainers like myself the flexibility to take even further what's possible in this area. I'm more than happy to look into it myself, all I'd need would be a bit of initial guidance 🙌 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Not as of right now with webpack. splitChunks is not supported for server-side compilation. |
Beta Was this translation helpful? Give feedback.
Not as of right now with webpack. splitChunks is not supported for server-side compilation.