Skip to content

Commit 0c43902

Browse files
authored
Merge pull request #515 from oliviertassinari/patch-1
Use the new config parameters
2 parents 330c6e7 + 2467469 commit 0c43902

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

content/guides/hmr-react.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,16 +113,17 @@ module.exports = {
113113
},
114114

115115
module: {
116-
loaders: [
117-
{ test: /\.js$/,
118-
loaders: [
116+
rules: [
117+
{
118+
test: /\.js$/,
119+
use: [
119120
'babel-loader',
120121
],
121122
exclude: /node_modules/
122123
},
123124
{
124125
test: /\.css$/,
125-
loaders: [
126+
use: [
126127
'style-loader',
127128
'css-loader?modules',
128129
'postcss-loader',

0 commit comments

Comments
 (0)