Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function produceMainBundle() {
var bundle = require('browserify')()
.exclude('renderer3d')
.add('./src/scripts/index.js');
bundle
.bundle()
.on('error', function (err) {
gutil.log(gutil.colors.red('Failed to browserify'), gutil.colors.yellow(err.message));
})
.pipe(fs.createWriteStream(path.join(__dirname + '/dist/bundle.js')));
}