chore: update snapshots & regex for filterWarnings

This commit is contained in:
Igor Randjelovic
2021-03-02 15:26:04 +01:00
committed by Nathan Walker
parent bb4921c333
commit f95e10cb45
6 changed files with 82 additions and 18 deletions

View File

@ -171,14 +171,6 @@ exports[`angular configuration for android 1`] = `
]
},
plugins: [
/* config.plugin('ForkTsCheckerWebpackPlugin') */
new ForkTsCheckerWebpackPlugin(
{
typescript: {
memoryLimit: 4096
}
}
),
/* config.plugin('CleanWebpackPlugin') */
new CleanWebpackPlugin(
{
@ -194,6 +186,12 @@ exports[`angular configuration for android 1`] = `
platform: 'android'
}
),
/* config.plugin('FilterWarningsPlugin') */
new FilterWarningsPlugin(
{
exclude: /System.import\\\\(\\\\) is deprecated/
}
),
/* config.plugin('DefinePlugin') */
new DefinePlugin(
{
@ -440,14 +438,6 @@ exports[`angular configuration for ios 1`] = `
]
},
plugins: [
/* config.plugin('ForkTsCheckerWebpackPlugin') */
new ForkTsCheckerWebpackPlugin(
{
typescript: {
memoryLimit: 4096
}
}
),
/* config.plugin('CleanWebpackPlugin') */
new CleanWebpackPlugin(
{
@ -463,6 +453,12 @@ exports[`angular configuration for ios 1`] = `
platform: 'ios'
}
),
/* config.plugin('FilterWarningsPlugin') */
new FilterWarningsPlugin(
{
exclude: /System.import\\\\(\\\\) is deprecated/
}
),
/* config.plugin('DefinePlugin') */
new DefinePlugin(
{

View File

@ -199,6 +199,12 @@ exports[`javascript configuration for android 1`] = `
platform: 'android'
}
),
/* config.plugin('FilterWarningsPlugin') */
new FilterWarningsPlugin(
{
exclude: /System.import\\\\(\\\\) is deprecated/
}
),
/* config.plugin('DefinePlugin') */
new DefinePlugin(
{
@ -474,6 +480,12 @@ exports[`javascript configuration for ios 1`] = `
platform: 'ios'
}
),
/* config.plugin('FilterWarningsPlugin') */
new FilterWarningsPlugin(
{
exclude: /System.import\\\\(\\\\) is deprecated/
}
),
/* config.plugin('DefinePlugin') */
new DefinePlugin(
{

View File

@ -203,6 +203,12 @@ exports[`react configuration > android > adds ReactRefreshWebpackPlugin when HMR
platform: 'android'
}
),
/* config.plugin('FilterWarningsPlugin') */
new FilterWarningsPlugin(
{
exclude: /System.import\\\\(\\\\) is deprecated/
}
),
/* config.plugin('DefinePlugin') */
new DefinePlugin(
{
@ -473,6 +479,12 @@ exports[`react configuration > android > base config 1`] = `
platform: 'android'
}
),
/* config.plugin('FilterWarningsPlugin') */
new FilterWarningsPlugin(
{
exclude: /System.import\\\\(\\\\) is deprecated/
}
),
/* config.plugin('DefinePlugin') */
new DefinePlugin(
{
@ -743,6 +755,12 @@ exports[`react configuration > ios > adds ReactRefreshWebpackPlugin when HMR ena
platform: 'ios'
}
),
/* config.plugin('FilterWarningsPlugin') */
new FilterWarningsPlugin(
{
exclude: /System.import\\\\(\\\\) is deprecated/
}
),
/* config.plugin('DefinePlugin') */
new DefinePlugin(
{
@ -1016,6 +1034,12 @@ exports[`react configuration > ios > base config 1`] = `
platform: 'ios'
}
),
/* config.plugin('FilterWarningsPlugin') */
new FilterWarningsPlugin(
{
exclude: /System.import\\\\(\\\\) is deprecated/
}
),
/* config.plugin('DefinePlugin') */
new DefinePlugin(
{

View File

@ -213,6 +213,12 @@ exports[`svelte configuration for android 1`] = `
platform: 'android'
}
),
/* config.plugin('FilterWarningsPlugin') */
new FilterWarningsPlugin(
{
exclude: /System.import\\\\(\\\\) is deprecated/
}
),
/* config.plugin('DefinePlugin') */
new DefinePlugin(
{
@ -491,6 +497,12 @@ exports[`svelte configuration for ios 1`] = `
platform: 'ios'
}
),
/* config.plugin('FilterWarningsPlugin') */
new FilterWarningsPlugin(
{
exclude: /System.import\\\\(\\\\) is deprecated/
}
),
/* config.plugin('DefinePlugin') */
new DefinePlugin(
{

View File

@ -220,6 +220,12 @@ exports[`vue configuration for android 1`] = `
platform: 'android'
}
),
/* config.plugin('FilterWarningsPlugin') */
new FilterWarningsPlugin(
{
exclude: /System.import\\\\(\\\\) is deprecated/
}
),
/* config.plugin('DefinePlugin') */
new DefinePlugin(
{
@ -505,6 +511,12 @@ exports[`vue configuration for ios 1`] = `
platform: 'ios'
}
),
/* config.plugin('FilterWarningsPlugin') */
new FilterWarningsPlugin(
{
exclude: /System.import\\\\(\\\\) is deprecated/
}
),
/* config.plugin('DefinePlugin') */
new DefinePlugin(
{

View File

@ -236,10 +236,18 @@ export default function (config: Config, env: IWebpackEnv): Config {
},
]);
// useful for filtering common undesirable warnings
// Filter common undesirable warnings
config.plugin('FilterWarningsPlugin').use(FilterWarningsPlugin, [
{
exclude: /System.import/,
/**
* This rule hides
* +-------------------------------------------------------------------------------+
* | WARNING in ./node_modules/@angular/core/fesm2015/core.js 29714:15-102 |
* | System.import() is deprecated and will be removed soon. Use import() instead. |
* | For more info visit https://webpack.js.org/guides/code-splitting/ |
* +-------------------------------------------------------------------------------+
*/
exclude: /System.import\(\) is deprecated/,
},
]);