Skip to content

Commit d6b82c1

Browse files
authored
fix: revert rsbuild 1.2 bump (#6796)
1 parent 679d5ab commit d6b82c1

File tree

27 files changed

+399
-266
lines changed

27 files changed

+399
-266
lines changed

.changeset/smart-foxes-admire.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/cli/plugin-swc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
},
4040
"dependencies": {
4141
"@modern-js/utils": "workspace:*",
42-
"@rsbuild/core": "1.2.3",
42+
"@rsbuild/core": "1.1.13",
4343
"@rsbuild/plugin-webpack-swc": "1.0.9",
4444
"@swc/helpers": "0.5.13"
4545
},

packages/cli/rsbuild-plugin-esbuild/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"webpack": "^5.97.1"
3232
},
3333
"devDependencies": {
34-
"@rsbuild/core": "1.2.3",
35-
"@rsbuild/webpack": "1.2.0",
34+
"@rsbuild/core": "1.1.13",
35+
"@rsbuild/webpack": "1.1.6",
3636
"@scripts/build": "workspace:*",
3737
"typescript": "^5.4.2"
3838
},

packages/cli/uni-builder/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,24 @@
3434
"@modern-js/babel-preset": "workspace:*",
3535
"@modern-js/utils": "workspace:*",
3636
"@pmmmwh/react-refresh-webpack-plugin": "0.5.15",
37-
"@rsbuild/core": "1.2.3",
38-
"@rsbuild/plugin-assets-retry": "1.1.0",
37+
"@rsbuild/core": "1.1.13",
38+
"@rsbuild/plugin-assets-retry": "1.0.7",
3939
"@rsbuild/plugin-babel": "1.0.3",
40-
"@rsbuild/plugin-check-syntax": "1.2.1",
40+
"@rsbuild/plugin-check-syntax": "1.2.0",
4141
"@rsbuild/plugin-css-minimizer": "1.0.2",
4242
"@rsbuild/plugin-less": "1.1.0",
4343
"@rsbuild/plugin-pug": "1.0.2",
4444
"@rsbuild/plugin-react": "1.1.0",
4545
"@rsbuild/plugin-rem": "1.0.2",
46-
"@rsbuild/plugin-sass": "1.2.0",
46+
"@rsbuild/plugin-sass": "1.1.2",
4747
"@rsbuild/plugin-source-build": "1.0.2",
48-
"@rsbuild/plugin-styled-components": "1.2.0",
48+
"@rsbuild/plugin-styled-components": "1.1.0",
4949
"@rsbuild/plugin-svgr": "1.0.6",
5050
"@rsbuild/plugin-toml": "1.0.1",
51-
"@rsbuild/plugin-type-check": "1.2.1",
51+
"@rsbuild/plugin-type-check": "1.2.0",
5252
"@rsbuild/plugin-typed-css-modules": "1.0.2",
5353
"@rsbuild/plugin-yaml": "1.0.2",
54-
"@rsbuild/webpack": "1.2.0",
54+
"@rsbuild/webpack": "1.1.6",
5555
"@swc/helpers": "0.5.13",
5656
"autoprefixer": "10.4.20",
5757
"babel-loader": "9.2.1",

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

Lines changed: 6 additions & 6 deletions
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.40",
38+
"coreJs": "3.39",
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.40",
182+
"coreJs": "3.39",
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.40",
318+
"coreJs": "3.39",
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.40",
417+
"coreJs": "3.39",
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.40",
553+
"coreJs": "3.39",
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.40",
689+
"coreJs": "3.39",
690690
"mode": "entry",
691691
"targets": [
692692
"> 0.01%",

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

Lines changed: 32 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
149149
"loader": "builtin:swc-loader",
150150
"options": {
151151
"env": {
152-
"coreJs": "3.40",
152+
"coreJs": "3.39",
153153
"mode": "entry",
154154
"targets": [
155155
"> 0.01%",
@@ -228,7 +228,7 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
228228
"loader": "builtin:swc-loader",
229229
"options": {
230230
"env": {
231-
"coreJs": "3.40",
231+
"coreJs": "3.39",
232232
"mode": "entry",
233233
"targets": [
234234
"> 0.01%",
@@ -314,7 +314,7 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
314314
"type": "asset",
315315
},
316316
],
317-
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\|cur\\)\\$/i,
317+
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i,
318318
},
319319
{
320320
"oneOf": [
@@ -631,7 +631,7 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
631631
"loader": "builtin:swc-loader",
632632
"options": {
633633
"env": {
634-
"coreJs": "3.40",
634+
"coreJs": "3.39",
635635
"mode": "entry",
636636
"targets": [
637637
"> 0.01%",
@@ -723,7 +723,7 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
723723
"loader": "builtin:swc-loader",
724724
"options": {
725725
"env": {
726-
"coreJs": "3.40",
726+
"coreJs": "3.39",
727727
"mode": "entry",
728728
"targets": [
729729
"> 0.01%",
@@ -886,9 +886,7 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
886886
"hints": false,
887887
},
888888
"plugins": [
889-
{
890-
"name": "RsbuildCorePlugin",
891-
},
889+
RsbuildCorePlugin {},
892890
HotModuleReplacementPlugin {
893891
"name": "HotModuleReplacementPlugin",
894892
},
@@ -1005,13 +1003,13 @@ exports[`uni-builder rspack > should generator rspack config correctly 1`] = `
10051003
},
10061004
"extensionAlias": {
10071005
".js": [
1008-
".js",
10091006
".ts",
10101007
".tsx",
1008+
".js",
10111009
],
10121010
".jsx": [
1013-
".jsx",
10141011
".tsx",
1012+
".jsx",
10151013
],
10161014
},
10171015
"extensions": [
@@ -1306,7 +1304,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when node
13061304
"type": "asset",
13071305
},
13081306
],
1309-
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\|cur\\)\\$/i,
1307+
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i,
13101308
},
13111309
{
13121310
"oneOf": [
@@ -1767,9 +1765,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when node
17671765
"hints": false,
17681766
},
17691767
"plugins": [
1770-
{
1771-
"name": "RsbuildCorePlugin",
1772-
},
1768+
RsbuildCorePlugin {},
17731769
DefinePlugin {
17741770
"_args": [
17751771
{
@@ -1821,13 +1817,13 @@ exports[`uni-builder rspack > should generator rspack config correctly when node
18211817
},
18221818
"extensionAlias": {
18231819
".js": [
1824-
".js",
18251820
".ts",
18261821
".tsx",
1822+
".js",
18271823
],
18281824
".jsx": [
1829-
".jsx",
18301825
".tsx",
1826+
".jsx",
18311827
],
18321828
},
18331829
"extensions": [
@@ -1999,7 +1995,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
19991995
"loader": "builtin:swc-loader",
20001996
"options": {
20011997
"env": {
2002-
"coreJs": "3.40",
1998+
"coreJs": "3.39",
20031999
"mode": "entry",
20042000
"targets": [
20052001
"> 0.01%",
@@ -2078,7 +2074,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
20782074
"loader": "builtin:swc-loader",
20792075
"options": {
20802076
"env": {
2081-
"coreJs": "3.40",
2077+
"coreJs": "3.39",
20822078
"mode": "entry",
20832079
"targets": [
20842080
"> 0.01%",
@@ -2164,7 +2160,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
21642160
"type": "asset",
21652161
},
21662162
],
2167-
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\|cur\\)\\$/i,
2163+
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i,
21682164
},
21692165
{
21702166
"oneOf": [
@@ -2481,7 +2477,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
24812477
"loader": "builtin:swc-loader",
24822478
"options": {
24832479
"env": {
2484-
"coreJs": "3.40",
2480+
"coreJs": "3.39",
24852481
"mode": "entry",
24862482
"targets": [
24872483
"> 0.01%",
@@ -2573,7 +2569,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
25732569
"loader": "builtin:swc-loader",
25742570
"options": {
25752571
"env": {
2576-
"coreJs": "3.40",
2572+
"coreJs": "3.39",
25772573
"mode": "entry",
25782574
"targets": [
25792575
"> 0.01%",
@@ -2771,9 +2767,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
27712767
"hints": false,
27722768
},
27732769
"plugins": [
2774-
{
2775-
"name": "RsbuildCorePlugin",
2776-
},
2770+
RsbuildCorePlugin {},
27772771
CssExtractRspackPlugin {
27782772
"options": {
27792773
"chunkFilename": "static/css/async/[name].[contenthash:8].css",
@@ -2875,13 +2869,13 @@ exports[`uni-builder rspack > should generator rspack config correctly when prod
28752869
},
28762870
"extensionAlias": {
28772871
".js": [
2878-
".js",
28792872
".ts",
28802873
".tsx",
2874+
".js",
28812875
],
28822876
".jsx": [
2883-
".jsx",
28842877
".tsx",
2878+
".jsx",
28852879
],
28862880
},
28872881
"extensions": [
@@ -3147,7 +3141,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when serv
31473141
"type": "asset",
31483142
},
31493143
],
3150-
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\|cur\\)\\$/i,
3144+
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i,
31513145
},
31523146
{
31533147
"oneOf": [
@@ -3590,9 +3584,7 @@ exports[`uni-builder rspack > should generator rspack config correctly when serv
35903584
"hints": false,
35913585
},
35923586
"plugins": [
3593-
{
3594-
"name": "RsbuildCorePlugin",
3595-
},
3587+
RsbuildCorePlugin {},
35963588
DefinePlugin {
35973589
"_args": [
35983590
{
@@ -3644,13 +3636,13 @@ exports[`uni-builder rspack > should generator rspack config correctly when serv
36443636
},
36453637
"extensionAlias": {
36463638
".js": [
3647-
".js",
36483639
".ts",
36493640
".tsx",
3641+
".js",
36503642
],
36513643
".jsx": [
3652-
".jsx",
36533644
".tsx",
3645+
".jsx",
36543646
],
36553647
},
36563648
"extensions": [
@@ -4092,7 +4084,7 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = `
40924084
"type": "asset",
40934085
},
40944086
],
4095-
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\|cur\\)\\$/i,
4087+
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i,
40964088
},
40974089
{
40984090
"oneOf": [
@@ -4737,9 +4729,7 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = `
47374729
"hints": false,
47384730
},
47394731
"plugins": [
4740-
{
4741-
"name": "RsbuildCorePlugin",
4742-
},
4732+
RsbuildCorePlugin {},
47434733
HotModuleReplacementPlugin {
47444734
"options": {},
47454735
},
@@ -4884,13 +4874,13 @@ exports[`uni-builder webpack > should generator webpack config correctly 1`] = `
48844874
},
48854875
"extensionAlias": {
48864876
".js": [
4887-
".js",
48884877
".ts",
48894878
".tsx",
4879+
".js",
48904880
],
48914881
".jsx": [
4892-
".jsx",
48934882
".tsx",
4883+
".jsx",
48944884
],
48954885
},
48964886
"extensions": [
@@ -5357,7 +5347,7 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
53575347
"type": "asset",
53585348
},
53595349
],
5360-
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\|cur\\)\\$/i,
5350+
"test": /\\\\\\.\\(\\?:png\\|jpg\\|jpeg\\|pjpeg\\|pjp\\|gif\\|bmp\\|webp\\|ico\\|apng\\|avif\\|tif\\|tiff\\|jfif\\)\\$/i,
53615351
},
53625352
{
53635353
"oneOf": [
@@ -6073,9 +6063,7 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
60736063
"hints": false,
60746064
},
60756065
"plugins": [
6076-
{
6077-
"name": "RsbuildCorePlugin",
6078-
},
6066+
RsbuildCorePlugin {},
60796067
MiniCssExtractPlugin {
60806068
"_sortedModulesCache": WeakMap {},
60816069
"options": {
@@ -6246,13 +6234,13 @@ exports[`uni-builder webpack > should generator webpack config correctly when pr
62466234
},
62476235
"extensionAlias": {
62486236
".js": [
6249-
".js",
62506237
".ts",
62516238
".tsx",
6239+
".js",
62526240
],
62536241
".jsx": [
6254-
".jsx",
62556242
".tsx",
6243+
".jsx",
62566244
],
62576245
},
62586246
"extensions": [

0 commit comments

Comments
 (0)