use the correct opts for browserify
This commit is contained in:
+6
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user