Limenius / ReactBundle

Client and Server-side React.js rendering in a Symfony Bundle
MIT License
390 stars 53 forks source link

Support multiple server bundles #54

Open fkrauthan opened 2 years ago

fkrauthan commented 2 years ago

I was wondering if there is any specific reason why it currently only supports a single JS as server bundle? What if I want to have two different pages that are independent? Like I could put them all into the same server bundle but that makes the JS way bigger then it needs to be and therefore I assume makes the JS parsing and execution slower (on the server).

Preferable I would like to build multiple independent server bundle js files and then select the one to use as part of the twig template call.