We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6131278 commit 76eb377Copy full SHA for 76eb377
index.js
@@ -5,7 +5,7 @@ try {
5
fs.accessSync(__dirname + '/lib/index.js', fs.R_OK);
6
core = require('./lib');
7
//Use babel polyfill when node version < 8
8
- if (!global._babelPolyfill && process.version.substr(1, 1) < 8) {
+ if (!global._babelPolyfill && process.version.replace('v', '').split('.')[0] < 8) {
9
require('babel-polyfill');
10
}
11
} catch (e) {
0 commit comments