Skip to content

Commit ed10acf

Browse files
heruiwoniouScriptedAlchemy
authored andcommitted
fix(HMR): Improved path Settings for hotloader.js load hmr.js (#118) (#124)
Remove the exclamation point so that HMR can be handled by other loader. e.g: babel-loader.
1 parent 5c48fdd commit ed10acf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotLoader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module.exports = function (content) {
1818
return content + `
1919
if(module.hot) {
2020
// ${Date.now()}
21-
var cssReload = require(${loaderUtils.stringifyRequest(this, '!' + path.join(__dirname, 'hotModuleReplacement.js'))})(module.id, ${JSON.stringify(options)});
21+
var cssReload = require(${loaderUtils.stringifyRequest(this, path.join(__dirname, 'hotModuleReplacement.js'))})(module.id, ${JSON.stringify(options)});
2222
module.hot.dispose(cssReload);
2323
${accept};
2424
}

0 commit comments

Comments
 (0)