/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/cases/async-modules/runtime-performance/index.js
8 строк
456 B
Alexander Akait
test: run the webpack test suite under Deno (drop nearly all skips, --runInBand and unstable flags) (#21240)
22 июн 2026, 14:43
Не верифицирован
22 июн 2026, 14:43
0fce20d
Код
Авторство
О чём код?
it("should not take too long to evaluate nested async modules", async () => { const start = Date.now(); await import(/* webpackMode: "eager" */ "./loader.js?i=40!./loader.js"); // Memoized evaluation is a few ms; a regression re-walking the async DAG per // path is exponential and hangs. Generous budget catches that without // flaking on the 100ms edge when a loaded CI runner starves microtasks. expect(Date.now() - start).toBeLessThan(2000); });