Skip to content

Commit ee7effa

Browse files
committed
remove babel config from .babelrc to webpack config
1 parent 6be0bee commit ee7effa

3 files changed

Lines changed: 5 additions & 7 deletions

File tree

.babelrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

src/eval.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
export default function (e) {
2-
/* eslint no-eval: off*/
2+
/* eslint no-eval: off */
33
return eval(e)
44
}

webpack.config.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* eslint-disable */
1+
/* eslint import/no-extraneous-dependencies: 0 */
22
const autoprefixer = require('autoprefixer')
33
const path = require('path')
44

@@ -18,6 +18,9 @@ module.exports = {
1818
{
1919
test: /\.js$/,
2020
loader: 'babel',
21+
query: {
22+
presets: ['latest'],
23+
},
2124
},
2225
],
2326
},

0 commit comments

Comments
 (0)