Skip to content

Commit e562375

Browse files
committed
fix: add noRegister option to webpack, #1315
1 parent b431885 commit e562375

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/webpack/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ function transform(source, map) {
3636
if (options.withPatch) {
3737
source = patch(source);
3838
}
39-
if (source.indexOf('reactHotLoader.register') > 0) {
39+
40+
if (source.indexOf('reactHotLoader.register') > 0 || options.noRegister) {
4041
return callback(null, source, map);
4142
}
4243
// This is a Webpack loader, but the user put it in the Babel config.

0 commit comments

Comments
 (0)