build: support node 4 for building js file (by bypassing syntax checking if node < 6)

This commit is contained in:
bordun 2016-11-28 13:35:08 +01:00
parent e29ce249f8
commit df9db253af
3 changed files with 6 additions and 7 deletions

View file

@ -1,12 +0,0 @@
// browserify without syntax checking for building browser-js with node 4
var browserify = require('browserify'),
path = require('path')
var b = browserify(path.resolve(__dirname + '/../src/browser/js/browser.js'));
// bypass syntax-error check
b.pipeline.get('syntax').splice(0, 1);
b.bundle().pipe(process.stdout);