diff --git a/README.md b/README.md index 6cba947..b9014a3 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,10 @@ Any module (that is *not* in `node_modules`) required via your tests with an ext For more information on writing tests in lab, see the [README](https://github.com/hapijs/lab). ### Babel >= 6 -For Babel versions greather than 6, please install [`babel-preset-es2015`](https://www.npmjs.com/package/babel-preset-es2015) add the following to your [`.babelrc`](https://babeljs.io/docs/usage/babelrc/): +For Babel versions greather than 6, you can install [`babel-preset-env`](https://www.npmjs.com/package/babel-preset-env) add the following to your [`.babelrc`](https://babeljs.io/docs/usage/babelrc/): ``` { - "presets": ["es2015"] + "presets": ["env"] } ``` (this could be added to the `babel` section of yor `package.json`, as described by the [`.babelrc`](https://babeljs.io/docs/usage/babelrc/#use-via-package-json) documentation) diff --git a/lib/index.js b/lib/index.js index aaad905..f1d419e 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,4 +1,4 @@ -var Babel = require('babel-core'); +var Babel = require('@babel/core'); var internals = {}; internals.transform = function (content, filename) { diff --git a/package.json b/package.json index ce7c748..d54ce37 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,6 @@ }, "homepage": "https://github.com/nlf/lab-babel", "peerDependencies": { - "babel-core": ">=4.x.x" + "@babel/core": ">=7.x.x" } }