use the correct opts for browserify

This commit is contained in:
Jared Allard
2015-08-19 15:36:18 -07:00
parent b803ae7ddd
commit 995e03eeea
+6 -2
View File
@@ -39,7 +39,12 @@ _log = require("./log");
* @param {function} complete - next function to call (async)
**/
function bundle (input, nc, complete) {
var b = browserify();
var b = browserify(input, {
builtins: false,
commondir:false,
detectGlobals: false,
browserField: false
});
var bundlePath = path.join(nc, "lib", "nexe.js");
var ws = fs.createWriteStream(bundlePath);
@@ -47,7 +52,6 @@ function bundle (input, nc, complete) {
fs.unlinkSync(bundlePath);
}*/
b.add(input); // add the file.
var bfs = b.bundle(); // open the bundle stream.
bfs.pipe(ws); // pipe it to the write stream we created earlier