do not include babel polyfill when node is 4.0+

This commit is contained in:
sanex3339
2016-12-24 18:02:53 +03:00
parent 1aed037b15
commit ece5ed3209
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env node
if (!global._babelPolyfill) {
if (!global._babelPolyfill && parseInt(process.version.split('.')[0], 10) < 4) {
require('babel-polyfill');
}