Let first-cache
plugin for watchify, provides cache from the first bundle.
npm install first-cache
$ watchify entry.js -v -p [first-cache -c ./tmp/browserify-cache.json] > bundle.js
first time bundle is no cache file.
# first time, no cache file
$ watchify -p first-cache -r react -r react-dom -o bundle.js -v
728042 bytes written to bundle.js (2.65 seconds)
# second time, exist cache file
$ watchify -p first-cache -r react -r react-dom -o bundle.js -v
728042 bytes written to bundle.js (0.23 seconds)
MIT