[Gradle, JS] Adopt Gradle plugin to webpack 5

^KT-42921 fixed
This commit is contained in:
Ilya Goncharov
2020-11-14 21:00:53 +03:00
committed by TeamCityServer
parent a06feaf819
commit 1b8c74337e
10 changed files with 42 additions and 30 deletions
@@ -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
}