Skip to content

Commit

Permalink
use preset-env, test against babel 7, update readme, add lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
hzoo committed Sep 14, 2017
1 parent 2a07480 commit dc04a19
Show file tree
Hide file tree
Showing 4 changed files with 4,029 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
npm install karma-babel-preprocessor --save-dev
```

As of Babel 6.0, [you need to tell Babel which features to use](http://babeljs.io/docs/plugins/). [babel-preset-es2015](http://babeljs.io/docs/plugins/preset-es2015/) would be the most common one.
As of Babel 6.0, [you need to tell Babel which features to use](http://babeljs.io/docs/plugins/). [babel-preset-env](http://babeljs.io/docs/plugins/preset-env/) would be the most common one.

```bash
npm install babel-preset-es2015 --save-dev
npm install babel-preset-env --save-dev
```

## Configuration
Expand Down
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ module.exports = function(config) {

babelPreprocessor: {
options: {
presets: ['es2015']
presets: ['env']
}
},

Expand Down

0 comments on commit dc04a19

Please sign in to comment.