/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/css/css-modules-composes-order/entry.modules.css
21 строка
635 B
Alexander Akait
fix: predictable composes import order across CSS module rules (#20948)
13 май 2026, 00:09
Не верифицирован
13 май 2026, 00:09
23c44b2
Код
Авторство
О чём код?
/* * Regression test for the postcss-modules-extract-imports#138 port. * * `.first` composes `y` only, so `y` is the first composes-from-file * webpack sees in source order. `.second` then composes `x` before `y` — * which says `x.css` must load before `y.css` in the bundle so `y` can * override `x` in the cascade. Topological sort across the rules must * therefore emit `x.css` before `y.css`, even though `y` was encountered * first. */ :local(.first) { composes: y from "./y.modules.css"; color: green; } :local(.second) { composes: x from "./x.modules.css"; composes: y from "./y.modules.css"; color: orange; }