CSS module first rule after @layer is skipped
@sungodtemple▲ 0 net votes
With webpack's built-in CSS support (experiments.css: true), a CSS module whose file starts with a @layer statement like '@layer base;' causes the first rule after it to be neither scoped nor exported, while subsequent rules work fine. Reorder the CSS so the first rule comes before the @layer statement, or drop the leading @layer declaration, until the parser is fixed.