/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/css/css-modules-composes-order/test.config.js
17 строк
382 B
Alexander Akait
fix: predictable composes import order across CSS module rules (#20948)
13 май 2026, 00:09
Не верифицирован
13 май 2026, 00:09
23c44b2
Код
Авторство
О чём код?
"use strict"; const HREF = "bundle0.css"; module.exports = { moduleScope(scope) { const { document } = scope.window; const existing = document .getElementsByTagName("link") .find((l) => l.href.endsWith(HREF)); if (existing) return; const link = document.createElement("link"); link.rel = "stylesheet"; link.href = HREF; document.head.appendChild(link); } };