From the document of watchify, I see:
When creating the browserify instance b you MUST set these properties in the constructor:
var b = browserify({ cache: {}, packageCache: {}, fullPaths: true })
The 3 parameters cache: {}, packageCache: {}, fullPaths: true
are for watchify, but why we should pass them to browserify
instead of passing to watchify
?