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

Commit

Permalink
Revert "leftover css should read from unclaimed modules (#1098)"
Browse files Browse the repository at this point in the history
This reverts commit 2f48c89.
  • Loading branch information
Conduitry committed Mar 12, 2020
1 parent 31d6f05 commit fc0a759
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/create_compilers/extract_css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,11 @@ export default function extract_css(
fs.writeFileSync(`${asset_dir}/${file}`, replaced);
});

const leftover = get_css_from_modules(Array.from(unclaimed), css_map, asset_dir);
unclaimed.forEach(file => {
entry_css_modules.push(file);
});

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

Expand Down

0 comments on commit fc0a759

Please sign in to comment.