diff --git a/lib/exe.js b/lib/exe.js index d0b3a2c..17c519b 100644 --- a/lib/exe.js +++ b/lib/exe.js @@ -54,6 +54,8 @@ exports.compile = function (options, complete) { bundlePath = path.join(nodeCompiler.dir, "lib", "nexe.js"); _log("bundle -> %s", bundlePath); + //Remove all non-ascii code from sources + source = source.replace(/[^\x00-\x7F]/g, ""); // same path as all the other JS files fs.writeFile(bundlePath, source, next); },