/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/errors/module-build-error/index.js
21 строка
677 B
Alexander Akait
fix(webmanifest): rewrite icon URLs at byte offsets (#21655)
10 авг 2026, 01:33
Не верифицирован
10 авг 2026, 01:33
5c5d009
Код
Авторство
О чём код?
// `var` (not `const`) so the parser cannot fold the branch away and drop the // dependencies — the modules must be built, only never executed. var never = false; it("should build every failing module without crashing", () => { if (never) { require("./broken.js?v8"); require("./broken.js?jsc"); require("./broken.js?no-name"); require("./broken.js?hide-stack"); require("./broken.js?no-stack"); require("./broken.js?nothing"); require("./non-buffer.js"); } }); it("should throw the build error when the module is executed", () => { expect(() => require("./broken.js?jsc")).toThrow( "Module build failed (from ./loader.js):\nTypeError: jsc boom" ); });