File tree 2 files changed +2
-2
lines changed
test/cases/hmr/expected/webpack-5
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1017,7 +1017,7 @@ class MiniCssExtractPlugin {
1017
1017
[
1018
1018
`var href = ${ RuntimeGlobals . require } .miniCssF(chunkId);` ,
1019
1019
`var fullhref = ${ RuntimeGlobals . publicPath } + href;` ,
1020
- 'const oldTag = findStylesheet(href, fullhref);' ,
1020
+ 'var oldTag = findStylesheet(href, fullhref);' ,
1021
1021
'if(!oldTag) return;' ,
1022
1022
`promises.push(new Promise(${ runtimeTemplate . basicFunction (
1023
1023
'resolve, reject' ,
Original file line number Diff line number Diff line change @@ -914,7 +914,7 @@ module.exports = function (urlString) {
914
914
/******/ chunkIds . forEach ( ( chunkId ) => {
915
915
/******/ var href = __webpack_require__ . miniCssF ( chunkId ) ;
916
916
/******/ var fullhref = __webpack_require__ . p + href ;
917
- /******/ const oldTag = findStylesheet ( href , fullhref ) ;
917
+ /******/ var oldTag = findStylesheet ( href , fullhref ) ;
918
918
/******/ if ( ! oldTag ) return ;
919
919
/******/ promises . push ( new Promise ( ( resolve , reject ) => {
920
920
/******/ var tag = createStylesheet ( chunkId , fullhref , ( ) => {
You can’t perform that action at this time.
0 commit comments