/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/hotCases/html/html-head-script-change/test.config.js
14 строк
422 B
Alexander Akait
fix(css): terminate a string or url() the tokenizer closed at EOF (#21624)
07 авг 2026, 16:56
Не верифицирован
07 авг 2026, 16:56
21af4f5
Код
Авторство
О чём код?
"use strict"; module.exports = { env: "jsdom", moduleScope(scope) { // FakeDocument's `location` global has no `reload` method by // default — patch a counter onto it so the test can verify the // HMR shim fell back to `window.location.reload()` on head change. scope.window.location.reload = () => { scope.window.location.__reloadCount__ = (scope.window.location.__reloadCount__ || 0) + 1; }; } };