Skip to content

Commit

Permalink
fix(mini-css-extract-plugin): fix ES5语法 (#6908)
Browse files Browse the repository at this point in the history
Co-authored-by: chemdemo <demo.ydm@alibaba-inc.com>
  • Loading branch information
chemdemo and chemdemo committed Jul 6, 2021
1 parent d62b816 commit 9e36ba7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ module.exports = class CssLoadingRuntimeModule extends RuntimeModule {
`chunkIds.forEach(${runtimeTemplate.basicFunction('chunkId', [
`var href = ${RuntimeGlobals.require}.miniCssF(chunkId);`,
`var fullhref = ${RuntimeGlobals.publicPath} + href;`,
'const oldTag = findStylesheet(href, fullhref);',
'var oldTag = findStylesheet(href, fullhref);',
'if(!oldTag) return;',
`promises.push(new Promise(${runtimeTemplate.basicFunction(
'resolve, reject',
Expand Down

0 comments on commit 9e36ba7

Please sign in to comment.