Skip to content

Commit

Permalink
fix: add noRegister option to webpack, #1315
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Aug 1, 2019
1 parent b431885 commit e562375
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/webpack/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ function transform(source, map) {
if (options.withPatch) {
source = patch(source);
}
if (source.indexOf('reactHotLoader.register') > 0) {

if (source.indexOf('reactHotLoader.register') > 0 || options.noRegister) {
return callback(null, source, map);
}
// This is a Webpack loader, but the user put it in the Babel config.
Expand Down

0 comments on commit e562375

Please sign in to comment.