feat: drop webpack-filter-warnings-plugin in favor of built-in ignoreWarnings

This commit is contained in:
Igor Randjelovic
2021-03-29 13:59:33 +02:00
parent 687bc641a5
commit 7d5f4a48ac
10 changed files with 78 additions and 110 deletions

View File

@ -50,6 +50,22 @@ export default function (config: Config, env: IWebpackEnv = _env): Config {
},
]);
// Filter common undesirable warnings
config.set(
'ignoreWarnings',
(config.get('ignoreWarnings') ?? []).concat([
/**
* This rule hides
* +-----------------------------------------------------------------------------------------+
* | WARNING in Zone.js does not support native async/await in ES2017+. |
* | These blocks are not intercepted by zone.js and will not triggering change detection. |
* | See: https://github.com/angular/zone.js/pull/1140 for more information. |
* +-----------------------------------------------------------------------------------------+
*/
/Zone\.js does not support native async\/await/,
])
);
return config;
}