I have better "code splitting" than "lazy loading" concerning js , nothing can be done automatically, it depends of your app, your code and mainly the UX/UI you want.
That said, your question makes me to search on the web for a better answer than these 2 lines and I found this link; not too long, complete and clear.
@sr57 I don't know if it's a good idea and I don't want to test it for the moment, but I wonder if there is a way to bundle only the needed node modules and not all the others that are not used in the app.