Skip to content

Commit ded507b

Browse files
committed
feat: update snap
1 parent 516941d commit ded507b

File tree

5 files changed

+37
-39
lines changed

5 files changed

+37
-39
lines changed

packages/cli/uni-builder/tests/__snapshots__/babel.test.ts.snap

+6-6
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ exports[`plugin-babel (rspack mode) > should merge environment and shared babel
3535
"loader": "builtin:swc-loader",
3636
"options": {
3737
"env": {
38-
"coreJs": "3.41",
38+
"coreJs": "3.42",
3939
"mode": "entry",
4040
"targets": [
4141
"> 0.01%",
@@ -179,7 +179,7 @@ exports[`plugin-babel (rspack mode) > should merge environment and shared babel
179179
"loader": "builtin:swc-loader",
180180
"options": {
181181
"env": {
182-
"coreJs": "3.41",
182+
"coreJs": "3.42",
183183
"mode": "entry",
184184
"targets": [
185185
"> 0.01%",
@@ -315,7 +315,7 @@ exports[`plugin-babel (rspack mode) > should not set babel-loader when babel con
315315
"loader": "builtin:swc-loader",
316316
"options": {
317317
"env": {
318-
"coreJs": "3.41",
318+
"coreJs": "3.42",
319319
"mode": "entry",
320320
"targets": [
321321
"> 0.01%",
@@ -414,7 +414,7 @@ exports[`plugin-babel (rspack mode) > should set babel-loader when babel config
414414
"loader": "builtin:swc-loader",
415415
"options": {
416416
"env": {
417-
"coreJs": "3.41",
417+
"coreJs": "3.42",
418418
"mode": "entry",
419419
"targets": [
420420
"> 0.01%",
@@ -550,7 +550,7 @@ exports[`plugin-babel (rspack mode) > should set babel-loader when environment b
550550
"loader": "builtin:swc-loader",
551551
"options": {
552552
"env": {
553-
"coreJs": "3.41",
553+
"coreJs": "3.42",
554554
"mode": "entry",
555555
"targets": [
556556
"> 0.01%",
@@ -686,7 +686,7 @@ exports[`plugin-babel (rspack mode) > should set babel-loader when environment b
686686
"loader": "builtin:swc-loader",
687687
"options": {
688688
"env": {
689-
"coreJs": "3.41",
689+
"coreJs": "3.42",
690690
"mode": "entry",
691691
"targets": [
692692
"> 0.01%",

packages/cli/uni-builder/tests/__snapshots__/default.test.ts.snap

+16-18
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
1212
},
1313
"experiments": {
1414
"asyncWebAssembly": true,
15+
"incremental": true,
1516
},
1617
"infrastructureLogging": {
1718
"level": "error",
@@ -238,7 +239,7 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
238239
"loader": "builtin:swc-loader",
239240
"options": {
240241
"env": {
241-
"coreJs": "3.41",
242+
"coreJs": "3.42",
242243
"mode": "entry",
243244
"targets": [
244245
"> 0.01%",
@@ -317,7 +318,7 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
317318
"loader": "builtin:swc-loader",
318319
"options": {
319320
"env": {
320-
"coreJs": "3.41",
321+
"coreJs": "3.42",
321322
"mode": "entry",
322323
"targets": [
323324
"> 0.01%",
@@ -941,7 +942,7 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
941942
"loader": "builtin:swc-loader",
942943
"options": {
943944
"env": {
944-
"coreJs": "3.41",
945+
"coreJs": "3.42",
945946
"mode": "entry",
946947
"targets": [
947948
"> 0.01%",
@@ -1033,7 +1034,7 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
10331034
"loader": "builtin:swc-loader",
10341035
"options": {
10351036
"env": {
1036-
"coreJs": "3.41",
1037+
"coreJs": "3.42",
10371038
"mode": "entry",
10381039
"targets": [
10391040
"> 0.01%",
@@ -1243,8 +1244,8 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
12431244
"version": 6,
12441245
},
12451246
RsbuildHtmlPlugin {
1247+
"getContext": [Function],
12461248
"getEnvironment": [Function],
1247-
"modifyTagsFn": [Function],
12481249
"name": "RsbuildHtmlPlugin",
12491250
"options": {
12501251
"index": {
@@ -1346,7 +1347,6 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
13461347
],
13471348
"watchOptions": {
13481349
"aggregateTimeout": 0,
1349-
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
13501350
},
13511351
}
13521352
`;
@@ -1387,6 +1387,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when node
13871387
},
13881388
"experiments": {
13891389
"asyncWebAssembly": true,
1390+
"incremental": true,
13901391
},
13911392
"infrastructureLogging": {
13921393
"level": "error",
@@ -2286,7 +2287,6 @@ exports[`uni-builder rspack > should generator rspack config correctly when node
22862287
"target": "node",
22872288
"watchOptions": {
22882289
"aggregateTimeout": 0,
2289-
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
22902290
},
22912291
}
22922292
`;
@@ -2303,6 +2303,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
23032303
},
23042304
"experiments": {
23052305
"asyncWebAssembly": true,
2306+
"incremental": true,
23062307
},
23072308
"infrastructureLogging": {
23082309
"level": "error",
@@ -2528,7 +2529,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
25282529
"loader": "builtin:swc-loader",
25292530
"options": {
25302531
"env": {
2531-
"coreJs": "3.41",
2532+
"coreJs": "3.42",
25322533
"mode": "entry",
25332534
"targets": [
25342535
"> 0.01%",
@@ -2607,7 +2608,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
26072608
"loader": "builtin:swc-loader",
26082609
"options": {
26092610
"env": {
2610-
"coreJs": "3.41",
2611+
"coreJs": "3.42",
26112612
"mode": "entry",
26122613
"targets": [
26132614
"> 0.01%",
@@ -3231,7 +3232,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
32313232
"loader": "builtin:swc-loader",
32323233
"options": {
32333234
"env": {
3234-
"coreJs": "3.41",
3235+
"coreJs": "3.42",
32353236
"mode": "entry",
32363237
"targets": [
32373238
"> 0.01%",
@@ -3323,7 +3324,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
33233324
"loader": "builtin:swc-loader",
33243325
"options": {
33253326
"env": {
3326-
"coreJs": "3.41",
3327+
"coreJs": "3.42",
33273328
"mode": "entry",
33283329
"targets": [
33293330
"> 0.01%",
@@ -3565,8 +3566,8 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
35653566
"version": 6,
35663567
},
35673568
RsbuildHtmlPlugin {
3569+
"getContext": [Function],
35683570
"getEnvironment": [Function],
3569-
"modifyTagsFn": [Function],
35703571
"name": "RsbuildHtmlPlugin",
35713572
"options": {
35723573
"index": {
@@ -3653,7 +3654,6 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
36533654
],
36543655
"watchOptions": {
36553656
"aggregateTimeout": 0,
3656-
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
36573657
},
36583658
}
36593659
`;
@@ -3669,6 +3669,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when serv
36693669
},
36703670
"experiments": {
36713671
"asyncWebAssembly": true,
3672+
"incremental": true,
36723673
},
36733674
"infrastructureLogging": {
36743675
"level": "error",
@@ -4549,7 +4550,6 @@ exports[`uni-builder rspack > should generator rspack config correctly when serv
45494550
],
45504551
"watchOptions": {
45514552
"aggregateTimeout": 0,
4552-
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
45534553
},
45544554
}
45554555
`;
@@ -5999,8 +5999,8 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = `
59995999
"version": 5,
60006000
},
60016001
RsbuildHtmlPlugin {
6002+
"getContext": [Function],
60026003
"getEnvironment": [Function],
6003-
"modifyTagsFn": [Function],
60046004
"name": "RsbuildHtmlPlugin",
60056005
"options": {
60066006
"index": {
@@ -6119,7 +6119,6 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = `
61196119
],
61206120
"watchOptions": {
61216121
"aggregateTimeout": 0,
6122-
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
61236122
},
61246123
}
61256124
`;
@@ -7680,8 +7679,8 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
76807679
"version": 5,
76817680
},
76827681
RsbuildHtmlPlugin {
7682+
"getContext": [Function],
76837683
"getEnvironment": [Function],
7684-
"modifyTagsFn": [Function],
76857684
"name": "RsbuildHtmlPlugin",
76867685
"options": {
76877686
"index": {
@@ -7791,7 +7790,6 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
77917790
],
77927791
"watchOptions": {
77937792
"aggregateTimeout": 0,
7794-
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
77957793
},
77967794
}
77977795
`;

packages/cli/uni-builder/tests/__snapshots__/environment.test.ts.snap

+8-8
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ exports[`uni-builder environment compat > should generator environment config co
1313
},
1414
"experiments": {
1515
"asyncWebAssembly": true,
16+
"incremental": true,
1617
},
1718
"infrastructureLogging": {
1819
"level": "error",
@@ -239,7 +240,7 @@ exports[`uni-builder environment compat > should generator environment config co
239240
"loader": "builtin:swc-loader",
240241
"options": {
241242
"env": {
242-
"coreJs": "3.41",
243+
"coreJs": "3.42",
243244
"mode": "entry",
244245
"targets": [
245246
"> 0.01%",
@@ -318,7 +319,7 @@ exports[`uni-builder environment compat > should generator environment config co
318319
"loader": "builtin:swc-loader",
319320
"options": {
320321
"env": {
321-
"coreJs": "3.41",
322+
"coreJs": "3.42",
322323
"mode": "entry",
323324
"targets": [
324325
"> 0.01%",
@@ -942,7 +943,7 @@ exports[`uni-builder environment compat > should generator environment config co
942943
"loader": "builtin:swc-loader",
943944
"options": {
944945
"env": {
945-
"coreJs": "3.41",
946+
"coreJs": "3.42",
946947
"mode": "entry",
947948
"targets": [
948949
"> 0.01%",
@@ -1034,7 +1035,7 @@ exports[`uni-builder environment compat > should generator environment config co
10341035
"loader": "builtin:swc-loader",
10351036
"options": {
10361037
"env": {
1037-
"coreJs": "3.41",
1038+
"coreJs": "3.42",
10381039
"mode": "entry",
10391040
"targets": [
10401041
"> 0.01%",
@@ -1244,8 +1245,8 @@ exports[`uni-builder environment compat > should generator environment config co
12441245
"version": 6,
12451246
},
12461247
RsbuildHtmlPlugin {
1248+
"getContext": [Function],
12471249
"getEnvironment": [Function],
1248-
"modifyTagsFn": [Function],
12491250
"name": "RsbuildHtmlPlugin",
12501251
"options": {
12511252
"index": {
@@ -1327,7 +1328,6 @@ exports[`uni-builder environment compat > should generator environment config co
13271328
],
13281329
"watchOptions": {
13291330
"aggregateTimeout": 0,
1330-
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
13311331
},
13321332
},
13331333
{
@@ -1340,6 +1340,7 @@ exports[`uni-builder environment compat > should generator environment config co
13401340
},
13411341
"experiments": {
13421342
"asyncWebAssembly": true,
1343+
"incremental": true,
13431344
},
13441345
"infrastructureLogging": {
13451346
"level": "error",
@@ -2204,7 +2205,6 @@ exports[`uni-builder environment compat > should generator environment config co
22042205
"target": "node",
22052206
"watchOptions": {
22062207
"aggregateTimeout": 0,
2207-
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
22082208
},
22092209
},
22102210
{
@@ -2217,6 +2217,7 @@ exports[`uni-builder environment compat > should generator environment config co
22172217
},
22182218
"experiments": {
22192219
"asyncWebAssembly": true,
2220+
"incremental": true,
22202221
},
22212222
"infrastructureLogging": {
22222223
"level": "error",
@@ -3042,7 +3043,6 @@ exports[`uni-builder environment compat > should generator environment config co
30423043
],
30433044
"watchOptions": {
30443045
"aggregateTimeout": 0,
3045-
"ignored": /\\[\\\\\\\\/\\]\\(\\?:\\\\\\.git\\|node_modules\\)\\[\\\\\\\\/\\]/,
30463046
},
30473047
},
30483048
]

packages/cli/uni-builder/tests/__snapshots__/minimize.test.ts.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ exports[`html minify > should not apply html minify in production when disableMi
7474
"version": 5,
7575
},
7676
RsbuildHtmlPlugin {
77+
"getContext": [Function],
7778
"getEnvironment": [Function],
78-
"modifyTagsFn": [Function],
7979
"name": "RsbuildHtmlPlugin",
8080
"options": {
8181
"index": {
@@ -207,8 +207,8 @@ exports[`html minify > should not apply html minify when htmlPlugin.minify false
207207
"version": 5,
208208
},
209209
RsbuildHtmlPlugin {
210+
"getContext": [Function],
210211
"getEnvironment": [Function],
211-
"modifyTagsFn": [Function],
212212
"name": "RsbuildHtmlPlugin",
213213
"options": {
214214
"index": {

0 commit comments

Comments
 (0)