mirror of
https://github.com/javascript-obfuscator/javascript-obfuscator
synced 2026-08-09 12:42:29 +00:00
do not include babel polyfill when node is 4.0+
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env node
|
||||
|
||||
if (!global._babelPolyfill) {
|
||||
if (!global._babelPolyfill && parseInt(process.version.split('.')[0], 10) < 4) {
|
||||
require('babel-polyfill');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user