mirror of https://github.com/webpack/webpack.git
test: fix
This commit is contained in:
parent
38f21c0da8
commit
aa1d44e29e
|
@ -223,7 +223,10 @@ class CssGenerator extends Generator {
|
|||
getSize(module, type) {
|
||||
switch (type) {
|
||||
case "javascript": {
|
||||
/** @type {undefined} */
|
||||
if (!module.buildInfo.cssData) {
|
||||
return 42;
|
||||
}
|
||||
|
||||
const exports = module.buildInfo.cssData.exports;
|
||||
const stringifiedExports = JSON.stringify(
|
||||
Array.from(exports).reduce((obj, [key, value]) => {
|
||||
|
|
Loading…
Reference in New Issue