even more fixes
insertGlobalVars
This commit is contained in:
@@ -39,11 +39,18 @@ _log = require("./log");
|
||||
* @param {function} complete - next function to call (async)
|
||||
**/
|
||||
function bundle (input, nc, complete) {
|
||||
var igv = '__filename,__dirname';
|
||||
insertGlobalVars = igv.split(',').reduce(function (vars, x) { // borrowed from browserify
|
||||
vars[x] = insertGlobals.vars[x];
|
||||
return vars;
|
||||
}, {});
|
||||
|
||||
var b = browserify(input, {
|
||||
builtins: false,
|
||||
commondir:false,
|
||||
detectGlobals: false,
|
||||
insertGlobals: '__filename,__dirname',
|
||||
insertGlobalVars: insertGlobalVars,
|
||||
browserField: false
|
||||
});
|
||||
var bundlePath = path.join(nc, "lib", "nexe.js");
|
||||
|
||||
Reference in New Issue
Block a user