Skip to content

Commit 4f53eb1

Browse files
committed
Move babel transform runtime plugin to the right place
1 parent e0c692a commit 4f53eb1

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,11 @@ loaders: [
3535
{
3636
test: /\.(js|svg)$/i,
3737
loader: 'babel-loader', // v6 or later
38+
exclude: /node_modules/,
3839
query: {
39-
presets: ['react', 'es2015']
40-
},
41-
plugins: [
42-
'transform-runtime'
43-
]
40+
presets: ['react', 'es2015'],
41+
plugins: ['transform-runtime']
42+
}
4443
},
4544
{
4645
test: /\.svg$/i,

test/webpack.config.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ module.exports = {
1616
loader: 'babel-loader',
1717
include: __dirname,
1818
query: {
19-
presets: ['react', 'es2015']
20-
},
21-
plugins: [
22-
'transform-runtime'
23-
]
19+
presets: ['react', 'es2015'],
20+
plugins: ['transform-runtime']
21+
}
2422
},
2523
{
2624
test: /\.svg$/i,

0 commit comments

Comments
 (0)