Fix ES6 support (#2821)

* Add polyfills for Node 6
This commit is contained in:
Igor Savin 2018-09-26 23:41:00 +02:00 committed by Mikael Lepistö
parent 932fa4b683
commit 1f8567393c
2 changed files with 4 additions and 0 deletions

View File

@ -5,4 +5,7 @@
// For details and documentation:
// http://knexjs.org
// Should be safe to remove after support for Node.js 6 is dropped
require('@babel/polyfill');
module.exports = require('./lib/index');

View File

@ -7,6 +7,7 @@
"node": ">=6"
},
"dependencies": {
"@babel/polyfill": "^7.0.0",
"bluebird": "^3.5.2",
"chalk": "2.4.1",
"commander": "^2.18.0",