[Gradle, JS] Adopt Gradle plugin to webpack 5
^KT-42921 fixed
This commit is contained in:
committed by
TeamCityServer
parent
a06feaf819
commit
1b8c74337e
@@ -33,13 +33,15 @@ class TeamCityErrorPlugin {
|
||||
apply(compiler) {
|
||||
compiler.hooks.done.tap('TeamCityErrorPlugin', (stats) => {
|
||||
|
||||
const warningsFilters = this.warningsFilter(stats.compilation.options.stats.warningsFilter);
|
||||
const warningsFilters = this.warningsFilter(stats.compilation.options.ignoreWarnings);
|
||||
|
||||
stats.compilation.errors.forEach(error => {
|
||||
const type = 'error';
|
||||
if (error instanceof ModuleNotFoundError) {
|
||||
error.dependencies.forEach(dependency => {
|
||||
console[type](formatMessage(TYPED_MESSAGE, `Module '${dependency.request}' not found`, type));
|
||||
const module = error.module;
|
||||
module.dependencies.forEach(dependency => {
|
||||
console[type](
|
||||
formatMessage(TYPED_MESSAGE, `Module '${dependency.request}' not found in '${module.resource}'`, type));
|
||||
});
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user