Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 2f48c89

Browse files
author
MapGrid
authored
leftover css should read from unclaimed modules (#1098)
1 parent 181c94d commit 2f48c89

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/core/create_compilers/extract_css.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -253,11 +253,7 @@ export default function extract_css(
253253
fs.writeFileSync(`${asset_dir}/${file}`, replaced);
254254
});
255255

256-
unclaimed.forEach(file => {
257-
entry_css_modules.push(file);
258-
});
259-
260-
const leftover = get_css_from_modules(entry_css_modules, css_map, asset_dir);
256+
const leftover = get_css_from_modules(Array.from(unclaimed), css_map, asset_dir);
261257
if (leftover) {
262258
let { code, map } = leftover;
263259

0 commit comments

Comments
 (0)