Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var Babel = require('babel-core');
var Babel = require('@babel/core');

var internals = {};
internals.transform = function (content, filename) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
},
"homepage": "https://github.com/nlf/lab-babel",
"peerDependencies": {
"babel-core": ">=4.x.x"
"@babel/core": ">=7.x.x"
}
}