Skip to content

Commit 3b8b626

Browse files
committed
fix: replace const with var to avoid strict mode errors
1 parent e8918ab commit 3b8b626

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ class MiniCssExtractPlugin {
10171017
[
10181018
`var href = ${RuntimeGlobals.require}.miniCssF(chunkId);`,
10191019
`var fullhref = ${RuntimeGlobals.publicPath} + href;`,
1020-
'const oldTag = findStylesheet(href, fullhref);',
1020+
'var oldTag = findStylesheet(href, fullhref);',
10211021
'if(!oldTag) return;',
10221022
`promises.push(new Promise(${runtimeTemplate.basicFunction(
10231023
'resolve, reject',

0 commit comments

Comments
 (0)