mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 04:41:36 +08:00
chore: update snapshots & regex for filterWarnings
This commit is contained in:
@ -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(
|
||||
{
|
||||
|
@ -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(
|
||||
{
|
||||
|
@ -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(
|
||||
{
|
||||
|
@ -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(
|
||||
{
|
||||
|
@ -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(
|
||||
{
|
||||
|
@ -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/,
|
||||
},
|
||||
]);
|
||||
|
||||
|
Reference in New Issue
Block a user