/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/css/side-effects/test.config.js
17 строк
498 B
Alexander Akait
perf(css): cache escape/unescapeIdentifier and move them to walkCssTokens (#20952)
15 май 2026, 16:04
Не верифицирован
15 май 2026, 16:04
53c363b
Код
Авторство
О чём код?
"use strict"; module.exports = { findBundle() { return ["bundle0.js"]; }, moduleScope(scope) { // `moduleScope` can run more than once (initial setup + per-module // evaluation). Guard against duplicate <link> tags being appended. if (scope.window.__cssLinkInjected) return; scope.window.__cssLinkInjected = true; const link = scope.window.document.createElement("link"); link.rel = "stylesheet"; link.href = "bundle0.css"; scope.window.document.head.appendChild(link); } };