Is the bundler faster if code-splitting is enabled?

536 views Asked by At

I normally program in react-native or use webpack. In big projects the bundle time can be pretty long. In react-native I have to try to check whether react-native unbundle makes the app faster indeed or not, but here is the question:

Is code-splitting suppose to speed up building time?

1

There are 1 answers

3
Tomasz Mularczyk On

Nope, it can even slow down a bit, as on every build webpack has to figure out how to split up each bundle. However there are ways to speed it up a bit but thats typically requires additional configuring for example with DDL webpack plugin.

If you are looking to speed up rebundling checkout also this article.