test: fix

This commit is contained in:
alexander.akait 2024-11-28 23:45:02 +03:00
parent 38f21c0da8
commit aa1d44e29e
1 changed files with 4 additions and 1 deletions

View File

@ -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]) => {