slovnicki / beamer

A routing package built on top of Router and Navigator's pages API, supporting arbitrary nested navigation, guards and more.
MIT License
582 stars 128 forks source link

Support deferred libraries #626

Open guihsdev opened 12 months ago

guihsdev commented 12 months ago

copied from flutter/flutter

Hi, I'm in middle of developing Web page in Flutter. The deeper I go the main file called main.dart.js is getting bigger. So then I've started searching how to reduce the file size.

I came across to that article and found out about deferred libraries. That sample project from article is based on qlevar_router which has such handy method as Middleware which helps in implementing separate file for each page.

Since my project is based on your package beamer, I was thinking about if are you planning to implement this or haven't thought about it yet? Please let me know if its interesting enhancement for your package.

Yes, is a CTRL + C and CTRL + V, but a relevant question.

If beamer already contains something like that, please let me know too.