3 ms·
So in our app, we have a file per react component, and our stuff is abstracted heavily into layers, so there are hundreds of files. There are also several diffe
by antihero 12y ago
So in our app, we have a file per react component, and our stuff is abstracted heavily into layers, so there are hundreds of files. There are also several different entry points, eg for the desktop js, a tiny app that runs embedded on phones. Browserify means that when we bundle each of these apps, it can include only the exact source files that it needs. This would be an absolute nightmare with concat.
Furthermore, we also use 6to5 and es6 modules, so whilst we use browserify in our gulp build, if another team used, say AMD, they could pull in our modules easily.
I'm interested in using webpack but the docs felt unfinished.