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

Leftover css should read from unclaimed modules #1098

Merged
merged 1 commit into from
Feb 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions src/core/create_compilers/extract_css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,7 @@ export default function extract_css(
fs.writeFileSync(`${asset_dir}/${file}`, replaced);
});

unclaimed.forEach(file => {
entry_css_modules.push(file);
});

const leftover = get_css_from_modules(entry_css_modules, css_map, asset_dir);
const leftover = get_css_from_modules(Array.from(unclaimed), css_map, asset_dir);
if (leftover) {
let { code, map } = leftover;

Expand Down