File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ module.exports.pitch = function pitch(remainingRequest) {
17
17
}
18
18
19
19
const insertCssPath = path . join ( __dirname , './insertCss.js' ) ;
20
- let output = `
20
+ return `
21
21
var content = require(${ stringifyRequest ( this , `!!${ remainingRequest } ` ) } );
22
22
var insertCss = require(${ stringifyRequest ( this , `!${ insertCssPath } ` ) } );
23
23
@@ -28,9 +28,7 @@ module.exports.pitch = function pitch(remainingRequest) {
28
28
module.exports = content.locals || {};
29
29
module.exports._getCss = function() { return content.toString(); };
30
30
module.exports._insertCss = function(options) { return insertCss(content, options) };
31
- ` ;
32
-
33
- output += this . debug ? `
31
+
34
32
// Hot Module Replacement
35
33
// https://webpack.github.io/docs/hot-module-replacement
36
34
// Only activated in browser context
@@ -47,7 +45,5 @@ module.exports.pitch = function pitch(remainingRequest) {
47
45
});
48
46
module.hot.dispose(function() { removeCss(); });
49
47
}
50
- ` : '' ;
51
-
52
- return output ;
48
+ ` ;
53
49
} ;
You can’t perform that action at this time.
0 commit comments