Skip to content

Commit 76eb377

Browse files
committed
fix: support node v10
1 parent 6131278 commit 76eb377

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ try {
55
fs.accessSync(__dirname + '/lib/index.js', fs.R_OK);
66
core = require('./lib');
77
//Use babel polyfill when node version < 8
8-
if (!global._babelPolyfill && process.version.substr(1, 1) < 8) {
8+
if (!global._babelPolyfill && process.version.replace('v', '').split('.')[0] < 8) {
99
require('babel-polyfill');
1010
}
1111
} catch (e) {

0 commit comments

Comments
 (0)