Closed sjkillen closed 9 years ago
In your example, bundler
is a browserify instance, so you have all the browserify events. But, if you're looking for a "prebundle" to add a require and expose it, try this:
var bundler = browserify("./"+main, watchify.args);
bundler.require("browserify-fs", {expose:"fs"});
bundler.plugin(watchify);
Also, as of 2.5.0, fullPaths
is optional.
Hey just wondering if watchify supports .on("prebundle") I can't seem to get it to work