Skip to content

Commit 5bd1ba2

Browse files
Using .babelrc file rather thatn inline babel comfig
1 parent 63c0162 commit 5bd1ba2

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

example/webpack.config.js

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -42,25 +42,7 @@ const config = {
4242
test: /\.jsx?$/,
4343
loader: 'babel-loader',
4444
exclude: /node_modules/,
45-
include: [path.resolve('src')],
46-
query: {
47-
babelrc: false,
48-
presets: [
49-
"react",
50-
["env", {
51-
"targets": {
52-
"browsers": "last 2 versions"
53-
},
54-
"loose": true,
55-
"modules": "commonjs"
56-
}]
57-
],
58-
"plugins": [
59-
"transform-decorators",
60-
"transform-class-properties",
61-
"transform-object-rest-spread"
62-
]
63-
}
45+
include: [path.resolve('src')]
6446
},
6547
{
6648
test: /\.css$/,

0 commit comments

Comments
 (0)