/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/asset-modules/bytes/test.config.js
28 строк
508 B
Alexander Akait
fix: context modules with import attributes (#19984)
07 окт 2025, 01:24
Не верифицирован
07 окт 2025, 01:24
c7dd066
Код
Авторство
О чём код?
"use strict"; let run = 0; module.exports = { moduleScope(scope, options) { if (!scope.window) { return; } const link = scope.window.document.createElement("link"); link.rel = "stylesheet"; link.href = `bundle${run === 0 ? "0" : "2"}.css`; scope.window.document.head.appendChild(link); run++; }, findBundle(i) { if (i === 2) { return ["bundle2.mjs"]; } return [ `file_text_other.bundle${i}.${i === 2 ? "mjs" : "js"}`, `bundle${i}.${i === 2 ? "mjs" : "js"}` ]; } };