-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(package): switch to react-hot-loader #1946
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1946 +/- ##
==========================================
- Coverage 99.77% 99.77% -0.01%
==========================================
Files 148 148
Lines 2640 2637 -3
==========================================
- Hits 2634 2631 -3
Misses 6 6
Continue to review full report at Codecov.
|
webpack.config.js
Outdated
cacheDirectory: true, | ||
}, | ||
}, | ||
loaders: jsLoaders, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be a use: []
and not loaders: []
, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@levithomason Thanks for your eyes, docs sent me the wrong way
fe2ad69
to
ea3af63
Compare
cacheDirectory: true, | ||
}, | ||
}] | ||
if (__DEV__) jsLoaders.unshift('react-hot-loader/webpack') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this work as is? I'm not as solid with webpack 2 yet, but the docs show only this syntax:
-if (__DEV__) jsLoaders.unshift('react-hot-loader/webpack')
+if (__DEV__) jsLoaders.unshift({ loader: 'react-hot-loader/webpack' })
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can find this in docs, but it works.
Released in |
Rel #1895.
Details