We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6befee5 commit fdbe0e6Copy full SHA for fdbe0e6
loader.js
@@ -19,10 +19,12 @@ module.exports = function(source) {
19
20
// We need to always require hotModuleReplacement.js for HMR to work in a wierd scenario
21
// where only one css file is imported. Otherwise HMR breaks when modules are disposed.
22
- return `${source}
23
-require(${loaderUtils.stringifyRequest(this, path.join(__dirname, "hotModuleReplacement.js"))})`;
+ return `
+require(${loaderUtils.stringifyRequest(this, path.join(__dirname, "hotModuleReplacement.js"))})
24
+${source}`;
25
};
26
27
+
28
module.exports.pitch = function(request) {
29
var self = this;
30
var remainingRequest = request;
0 commit comments