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

Commit fc0a759

Browse files
committed
Revert "leftover css should read from unclaimed modules (#1098)"
This reverts commit 2f48c89.
1 parent 31d6f05 commit fc0a759

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/core/create_compilers/extract_css.ts

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

256-
const leftover = get_css_from_modules(Array.from(unclaimed), css_map, asset_dir);
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);
257261
if (leftover) {
258262
let { code, map } = leftover;
259263

0 commit comments

Comments
 (0)