fix lazy css bug, add tests

This commit is contained in:
Rich Harris
2018-10-24 18:48:38 -04:00
parent ffd56e2a20
commit 410c52df41
12 changed files with 294 additions and 1 deletions

View File

@@ -219,7 +219,7 @@ export default function extract_css(client_result: CompileResult, components: Pa
});
unclaimed.forEach(file => {
entry_css_modules.push(css_map.get(file));
entry_css_modules.push(file);
});
const leftover = get_css_from_modules(entry_css_modules, css_map, dirs);