Skip to content

Commit 81ab0ec

Browse files
authored
chore: webpack updates (#10050)
1 parent e97eb04 commit 81ab0ec

File tree

10 files changed

+234
-234
lines changed

10 files changed

+234
-234
lines changed

packages/webpack5/__tests__/configuration/__snapshots__/angular.spec.ts.snap

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ exports[`angular configuration for android 1`] = `
1919
]
2020
},
2121
ignoreWarnings: [
22-
/System.import\\\\(\\\\) is deprecated/,
23-
/Zone\\\\.js does not support native async\\\\/await/,
24-
/environment(\\\\.(\\\\w+))?\\\\.ts is part of the TypeScript compilation but it's unused/,
22+
/System.import\\(\\) is deprecated/,
23+
/Zone\\.js does not support native async\\/await/,
24+
/environment(\\.(\\w+))?\\.ts is part of the TypeScript compilation but it's unused/,
2525
{
26-
module: /@angular\\\\/core\\\\/(__ivy_ngcc__\\\\/)?fesm2015\\\\/core.js/,
26+
module: /@angular\\/core\\/(__ivy_ngcc__\\/)?fesm2015\\/core.js/,
2727
message: /Critical dependency: the request of a dependency is an expression/
2828
},
29-
/core\\\\/profiling/,
30-
/core\\\\/ui\\\\/styling/
29+
/core\\/profiling/,
30+
/core\\/ui\\/styling/
3131
],
3232
output: {
3333
path: '__jest__/platforms/android/app/src/main/assets/app',
@@ -91,7 +91,7 @@ exports[`angular configuration for android 1`] = `
9191
},
9292
/* config.module.rule('workers') */
9393
{
94-
test: /\\\\.(mjs|js|ts)$/,
94+
test: /\\.(mjs|js|ts)$/,
9595
use: [
9696
/* config.module.rule('workers').use('nativescript-worker-loader') */
9797
{
@@ -101,14 +101,14 @@ exports[`angular configuration for android 1`] = `
101101
},
102102
/* config.module.rule('js') */
103103
{
104-
test: /\\\\.js$/,
104+
test: /\\.js$/,
105105
exclude: [
106106
/node_modules/
107107
]
108108
},
109109
/* config.module.rule('xml') */
110110
{
111-
test: /\\\\.xml$/,
111+
test: /\\.xml$/,
112112
use: [
113113
/* config.module.rule('xml').use('xml-namespace-loader') */
114114
{
@@ -118,7 +118,7 @@ exports[`angular configuration for android 1`] = `
118118
},
119119
/* config.module.rule('css') */
120120
{
121-
test: /\\\\.css$/,
121+
test: /\\.css$/,
122122
include: [
123123
'__jest__/src/app.css',
124124
'__jest__/src/app.android.css',
@@ -153,7 +153,7 @@ exports[`angular configuration for android 1`] = `
153153
},
154154
/* config.module.rule('scss') */
155155
{
156-
test: /\\\\.scss$/,
156+
test: /\\.scss$/,
157157
include: [
158158
'__jest__/src/app.scss',
159159
'__jest__/src/app.android.scss',
@@ -192,9 +192,9 @@ exports[`angular configuration for android 1`] = `
192192
},
193193
/* config.module.rule('angular-webpack-loader') */
194194
{
195-
test: /\\\\.[cm]?[tj]sx?$/,
195+
test: /\\.[cm]?[tj]sx?$/,
196196
exclude: [
197-
/[/\\\\\\\\](?:core-js|@babel|tslib|web-animations-js|web-streams-polyfill)[/\\\\\\\\]/
197+
/[/\\\\](?:core-js|@babel|tslib|web-animations-js|web-streams-polyfill)[/\\\\]/
198198
],
199199
use: [
200200
/* config.module.rule('angular-webpack-loader').use('webpack-loader') */
@@ -212,7 +212,7 @@ exports[`angular configuration for android 1`] = `
212212
},
213213
/* config.module.rule('angular') */
214214
{
215-
test: /(?:\\\\.ngfactory.js|\\\\.ngstyle\\\\.js|\\\\.ts)$/,
215+
test: /(?:\\.ngfactory.js|\\.ngstyle\\.js|\\.ts)$/,
216216
use: [
217217
/* config.module.rule('angular').use('@ngtools/webpack') */
218218
{
@@ -222,14 +222,14 @@ exports[`angular configuration for android 1`] = `
222222
},
223223
/* config.module.rule('@angular/core') */
224224
{
225-
test: /[\\\\/\\\\\\\\]@angular[\\\\/\\\\\\\\]core[\\\\/\\\\\\\\].+\\\\.js$/,
225+
test: /[\\/\\\\]@angular[\\/\\\\]core[\\/\\\\].+\\.js$/,
226226
parser: {
227227
system: true
228228
}
229229
},
230230
/* config.module.rule('html') */
231231
{
232-
test: /\\\\.html$/,
232+
test: /\\.html$/,
233233
use: [
234234
/* config.module.rule('html').use('raw-loader') */
235235
{
@@ -239,7 +239,7 @@ exports[`angular configuration for android 1`] = `
239239
},
240240
/* config.module.rule('css|component') */
241241
{
242-
test: /\\\\.css$/,
242+
test: /\\.css$/,
243243
exclude: [
244244
'__jest__/src/app.css',
245245
'__jest__/src/app.android.css',
@@ -254,7 +254,7 @@ exports[`angular configuration for android 1`] = `
254254
},
255255
/* config.module.rule('scss|component') */
256256
{
257-
test: /\\\\.scss$/,
257+
test: /\\.scss$/,
258258
exclude: [
259259
'__jest__/src/app.scss',
260260
'__jest__/src/app.android.scss',
@@ -294,7 +294,7 @@ exports[`angular configuration for android 1`] = `
294294
splitChunks: {
295295
cacheGroups: {
296296
defaultVendor: {
297-
test: /[\\\\\\\\/]node_modules[\\\\\\\\/]/,
297+
test: /[\\\\/]node_modules[\\\\/]/,
298298
priority: -10,
299299
name: 'vendor',
300300
chunks: 'all'
@@ -335,16 +335,16 @@ exports[`angular configuration for android 1`] = `
335335
),
336336
/* config.plugin('ContextExclusionPlugin|Other_Platforms') */
337337
new ContextExclusionPlugin(
338-
/\\\\.(ios)\\\\.(\\\\w+)$/
338+
/\\.(ios)\\.(\\w+)$/
339339
),
340340
/* config.plugin('DefinePlugin') */
341341
new DefinePlugin(
342342
{
343343
__DEV__: true,
344344
__NS_WEBPACK__: true,
345345
__NS_ENV_VERBOSE__: false,
346-
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
347-
__CSS_PARSER__: '\\"css-tree\\"',
346+
__NS_DEV_HOST_IPS__: '["127.0.0.1","192.168.0.10"]',
347+
__CSS_PARSER__: '"css-tree"',
348348
__UI_USE_XML_PARSER__: true,
349349
__UI_USE_EXTERNAL_RENDERER__: false,
350350
__ANDROID__: true,
@@ -443,15 +443,15 @@ exports[`angular configuration for ios 1`] = `
443443
]
444444
},
445445
ignoreWarnings: [
446-
/System.import\\\\(\\\\) is deprecated/,
447-
/Zone\\\\.js does not support native async\\\\/await/,
448-
/environment(\\\\.(\\\\w+))?\\\\.ts is part of the TypeScript compilation but it's unused/,
446+
/System.import\\(\\) is deprecated/,
447+
/Zone\\.js does not support native async\\/await/,
448+
/environment(\\.(\\w+))?\\.ts is part of the TypeScript compilation but it's unused/,
449449
{
450-
module: /@angular\\\\/core\\\\/(__ivy_ngcc__\\\\/)?fesm2015\\\\/core.js/,
450+
module: /@angular\\/core\\/(__ivy_ngcc__\\/)?fesm2015\\/core.js/,
451451
message: /Critical dependency: the request of a dependency is an expression/
452452
},
453-
/core\\\\/profiling/,
454-
/core\\\\/ui\\\\/styling/
453+
/core\\/profiling/,
454+
/core\\/ui\\/styling/
455455
],
456456
output: {
457457
path: '__jest__/platforms/ios/jest/app',
@@ -515,7 +515,7 @@ exports[`angular configuration for ios 1`] = `
515515
},
516516
/* config.module.rule('workers') */
517517
{
518-
test: /\\\\.(mjs|js|ts)$/,
518+
test: /\\.(mjs|js|ts)$/,
519519
use: [
520520
/* config.module.rule('workers').use('nativescript-worker-loader') */
521521
{
@@ -525,14 +525,14 @@ exports[`angular configuration for ios 1`] = `
525525
},
526526
/* config.module.rule('js') */
527527
{
528-
test: /\\\\.js$/,
528+
test: /\\.js$/,
529529
exclude: [
530530
/node_modules/
531531
]
532532
},
533533
/* config.module.rule('xml') */
534534
{
535-
test: /\\\\.xml$/,
535+
test: /\\.xml$/,
536536
use: [
537537
/* config.module.rule('xml').use('xml-namespace-loader') */
538538
{
@@ -542,7 +542,7 @@ exports[`angular configuration for ios 1`] = `
542542
},
543543
/* config.module.rule('css') */
544544
{
545-
test: /\\\\.css$/,
545+
test: /\\.css$/,
546546
include: [
547547
'__jest__/src/app.css',
548548
'__jest__/src/app.ios.css',
@@ -577,7 +577,7 @@ exports[`angular configuration for ios 1`] = `
577577
},
578578
/* config.module.rule('scss') */
579579
{
580-
test: /\\\\.scss$/,
580+
test: /\\.scss$/,
581581
include: [
582582
'__jest__/src/app.scss',
583583
'__jest__/src/app.ios.scss',
@@ -616,9 +616,9 @@ exports[`angular configuration for ios 1`] = `
616616
},
617617
/* config.module.rule('angular-webpack-loader') */
618618
{
619-
test: /\\\\.[cm]?[tj]sx?$/,
619+
test: /\\.[cm]?[tj]sx?$/,
620620
exclude: [
621-
/[/\\\\\\\\](?:core-js|@babel|tslib|web-animations-js|web-streams-polyfill)[/\\\\\\\\]/
621+
/[/\\\\](?:core-js|@babel|tslib|web-animations-js|web-streams-polyfill)[/\\\\]/
622622
],
623623
use: [
624624
/* config.module.rule('angular-webpack-loader').use('webpack-loader') */
@@ -636,7 +636,7 @@ exports[`angular configuration for ios 1`] = `
636636
},
637637
/* config.module.rule('angular') */
638638
{
639-
test: /(?:\\\\.ngfactory.js|\\\\.ngstyle\\\\.js|\\\\.ts)$/,
639+
test: /(?:\\.ngfactory.js|\\.ngstyle\\.js|\\.ts)$/,
640640
use: [
641641
/* config.module.rule('angular').use('@ngtools/webpack') */
642642
{
@@ -646,14 +646,14 @@ exports[`angular configuration for ios 1`] = `
646646
},
647647
/* config.module.rule('@angular/core') */
648648
{
649-
test: /[\\\\/\\\\\\\\]@angular[\\\\/\\\\\\\\]core[\\\\/\\\\\\\\].+\\\\.js$/,
649+
test: /[\\/\\\\]@angular[\\/\\\\]core[\\/\\\\].+\\.js$/,
650650
parser: {
651651
system: true
652652
}
653653
},
654654
/* config.module.rule('html') */
655655
{
656-
test: /\\\\.html$/,
656+
test: /\\.html$/,
657657
use: [
658658
/* config.module.rule('html').use('raw-loader') */
659659
{
@@ -663,7 +663,7 @@ exports[`angular configuration for ios 1`] = `
663663
},
664664
/* config.module.rule('css|component') */
665665
{
666-
test: /\\\\.css$/,
666+
test: /\\.css$/,
667667
exclude: [
668668
'__jest__/src/app.css',
669669
'__jest__/src/app.ios.css',
@@ -678,7 +678,7 @@ exports[`angular configuration for ios 1`] = `
678678
},
679679
/* config.module.rule('scss|component') */
680680
{
681-
test: /\\\\.scss$/,
681+
test: /\\.scss$/,
682682
exclude: [
683683
'__jest__/src/app.scss',
684684
'__jest__/src/app.ios.scss',
@@ -718,7 +718,7 @@ exports[`angular configuration for ios 1`] = `
718718
splitChunks: {
719719
cacheGroups: {
720720
defaultVendor: {
721-
test: /[\\\\\\\\/]node_modules[\\\\\\\\/]/,
721+
test: /[\\\\/]node_modules[\\\\/]/,
722722
priority: -10,
723723
name: 'vendor',
724724
chunks: 'all'
@@ -759,16 +759,16 @@ exports[`angular configuration for ios 1`] = `
759759
),
760760
/* config.plugin('ContextExclusionPlugin|Other_Platforms') */
761761
new ContextExclusionPlugin(
762-
/\\\\.(android)\\\\.(\\\\w+)$/
762+
/\\.(android)\\.(\\w+)$/
763763
),
764764
/* config.plugin('DefinePlugin') */
765765
new DefinePlugin(
766766
{
767767
__DEV__: true,
768768
__NS_WEBPACK__: true,
769769
__NS_ENV_VERBOSE__: false,
770-
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
771-
__CSS_PARSER__: '\\"css-tree\\"',
770+
__NS_DEV_HOST_IPS__: '["127.0.0.1","192.168.0.10"]',
771+
__CSS_PARSER__: '"css-tree"',
772772
__UI_USE_XML_PARSER__: true,
773773
__UI_USE_EXTERNAL_RENDERER__: false,
774774
__ANDROID__: false,
@@ -850,7 +850,7 @@ exports[`angular configuration for ios 1`] = `
850850
`;
851851

852852
exports[`angular configuration loads polyfills.android.ts into the bundle entry if it exists 1`] = `
853-
Array [
853+
[
854854
"__jest__/src/polyfills.android.ts",
855855
"@nativescript/core/bundle-entry-points",
856856
"__jest__/src/app.js",
@@ -860,15 +860,15 @@ Array [
860860
`;
861861

862862
exports[`angular configuration loads polyfills.ios.ts into the bundle entry if it exists 1`] = `
863-
Array [
863+
[
864864
"__jest__/src/polyfills.ios.ts",
865865
"@nativescript/core/bundle-entry-points",
866866
"__jest__/src/app.js",
867867
]
868868
`;
869869

870870
exports[`angular configuration loads polyfills.ts into the bundle entry if it exists 1`] = `
871-
Array [
871+
[
872872
"__jest__/src/polyfills.ts",
873873
"@nativescript/core/bundle-entry-points",
874874
"__jest__/src/app.js",

0 commit comments

Comments
 (0)