/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/errors/dependency-warning-stacks/warnings.js
22 строки
829 B
Alexander Akait
perf: reduce work on dependency hot paths and module diagnostics (#21559)
30 июл 2026, 20:12
Не верифицирован
30 июл 2026, 20:12
e7b15e8
Код
Авторство
О чём код?
"use strict"; module.exports = [ // the nested error keeps its stack, so its frames become the details, which // the plugin then overrides [ /Critical dependency: the request of a dependency is an expression/, // JSC omits the `Class.` prefix V8 puts in front of a method frame { details: /^overridden at (?:\S+\.)?getWarnings \(/ } ], // a `hideStack` nested error has no details; its frames lead the own stack, // which the plugin then overrides [ /export '(?:missing|missingToo)' \(imported as '(?:missing|missingToo)'\) was not found/, { stack: /^overridden ModuleDependencyWarning: export '/ } ], // the same, but assigned before anything read the derived stack [ /export '(?:missing|missingToo)' \(imported as '(?:missing|missingToo)'\) was not found/, { stack: /^overridden unread stack$/ } ] ];