2
2
3
3
exports [` prepareRsbuild > should generate rspack config correctly (jsdom) 1` ] = `
4
4
{
5
- " context" : " <ROOT>" ,
5
+ " context" : " <ROOT>/packages/core " ,
6
6
" devtool" : " source-map" ,
7
7
" entry" : {},
8
8
" experiments" : {
@@ -152,7 +152,7 @@ exports[`prepareRsbuild > should generate rspack config correctly (jsdom) 1`] =
152
152
" isModule" : " unknown" ,
153
153
" jsc" : {
154
154
" experimental" : {
155
- " cacheRoot" : " <ROOT>/node_modules/.cache/.swc" ,
155
+ " cacheRoot" : " <ROOT>/packages/core/ node_modules/.cache/.swc" ,
156
156
" keepImportAttributes" : true ,
157
157
},
158
158
" externalHelpers" : true ,
@@ -206,7 +206,7 @@ exports[`prepareRsbuild > should generate rspack config correctly (jsdom) 1`] =
206
206
" isModule" : " unknown" ,
207
207
" jsc" : {
208
208
" experimental" : {
209
- " cacheRoot" : " <ROOT>/node_modules/.cache/.swc" ,
209
+ " cacheRoot" : " <ROOT>/packages/core/ node_modules/.cache/.swc" ,
210
210
" keepImportAttributes" : true ,
211
211
},
212
212
" externalHelpers" : true ,
@@ -413,7 +413,7 @@ exports[`prepareRsbuild > should generate rspack config correctly (jsdom) 1`] =
413
413
" library" : {
414
414
" type" : " commonjs2" ,
415
415
},
416
- " path" : " <ROOT>/dist/.rstest-temp" ,
416
+ " path" : " <ROOT>/packages/core/ dist/.rstest-temp" ,
417
417
" pathinfo" : false ,
418
418
" publicPath" : " /" ,
419
419
" webassemblyModuleFilename" : " static/wasm/[contenthash:8].module.wasm" ,
@@ -469,7 +469,7 @@ exports[`prepareRsbuild > should generate rspack config correctly (jsdom) 1`] =
469
469
" hoistMockModule" : true ,
470
470
" importMetaPathName" : true ,
471
471
" injectModulePathName" : true ,
472
- " manualMockRoot" : " <ROOT>/__mocks__" ,
472
+ " manualMockRoot" : " <ROOT>/packages/core/ __mocks__" ,
473
473
},
474
474
],
475
475
" affectedHooks" : undefined ,
@@ -508,6 +508,10 @@ exports[`prepareRsbuild > should generate rspack config correctly (jsdom) 1`] =
508
508
" .json" ,
509
509
" .cjs" ,
510
510
],
511
+ " tsConfig" : {
512
+ " configFile" : " <ROOT>/packages/core/tsconfig.json" ,
513
+ " references" : " auto" ,
514
+ },
511
515
},
512
516
" target" : " node" ,
513
517
" watch" : false ,
@@ -520,7 +524,7 @@ exports[`prepareRsbuild > should generate rspack config correctly (jsdom) 1`] =
520
524
521
525
exports [` prepareRsbuild > should generate rspack config correctly (node) 1` ] = `
522
526
{
523
- " context" : " <ROOT>" ,
527
+ " context" : " <ROOT>/packages/core " ,
524
528
" devtool" : " source-map" ,
525
529
" entry" : {},
526
530
" experiments" : {
@@ -671,7 +675,7 @@ exports[`prepareRsbuild > should generate rspack config correctly (node) 1`] = `
671
675
" isModule" : " unknown" ,
672
676
" jsc" : {
673
677
" experimental" : {
674
- " cacheRoot" : " <ROOT>/node_modules/.cache/.swc" ,
678
+ " cacheRoot" : " <ROOT>/packages/core/ node_modules/.cache/.swc" ,
675
679
" keepImportAttributes" : true ,
676
680
},
677
681
" externalHelpers" : true ,
@@ -725,7 +729,7 @@ exports[`prepareRsbuild > should generate rspack config correctly (node) 1`] = `
725
729
" isModule" : " unknown" ,
726
730
" jsc" : {
727
731
" experimental" : {
728
- " cacheRoot" : " <ROOT>/node_modules/.cache/.swc" ,
732
+ " cacheRoot" : " <ROOT>/packages/core/ node_modules/.cache/.swc" ,
729
733
" keepImportAttributes" : true ,
730
734
},
731
735
" externalHelpers" : true ,
@@ -921,7 +925,7 @@ exports[`prepareRsbuild > should generate rspack config correctly (node) 1`] = `
921
925
" library" : {
922
926
" type" : " commonjs2" ,
923
927
},
924
- " path" : " <ROOT>/dist/.rstest-temp" ,
928
+ " path" : " <ROOT>/packages/core/ dist/.rstest-temp" ,
925
929
" pathinfo" : false ,
926
930
" publicPath" : " /" ,
927
931
" webassemblyModuleFilename" : " static/wasm/[contenthash:8].module.wasm" ,
@@ -976,7 +980,7 @@ exports[`prepareRsbuild > should generate rspack config correctly (node) 1`] = `
976
980
" hoistMockModule" : true ,
977
981
" importMetaPathName" : true ,
978
982
" injectModulePathName" : true ,
979
- " manualMockRoot" : " <ROOT>/__mocks__" ,
983
+ " manualMockRoot" : " <ROOT>/packages/core/ __mocks__" ,
980
984
},
981
985
],
982
986
" affectedHooks" : undefined ,
@@ -1018,6 +1022,10 @@ exports[`prepareRsbuild > should generate rspack config correctly (node) 1`] = `
1018
1022
" mainFields" : [
1019
1023
" main" ,
1020
1024
],
1025
+ " tsConfig" : {
1026
+ " configFile" : " <ROOT>/packages/core/tsconfig.json" ,
1027
+ " references" : " auto" ,
1028
+ },
1021
1029
},
1022
1030
" target" : " node" ,
1023
1031
" watch" : false ,
@@ -1030,7 +1038,7 @@ exports[`prepareRsbuild > should generate rspack config correctly (node) 1`] = `
1030
1038
1031
1039
exports [` prepareRsbuild > should generate rspack config correctly with projects 1` ] = `
1032
1040
{
1033
- " context" : " <ROOT>" ,
1041
+ " context" : " <ROOT>/packages/core " ,
1034
1042
" devtool" : " source-map" ,
1035
1043
" entry" : {},
1036
1044
" experiments" : {
@@ -1180,7 +1188,7 @@ exports[`prepareRsbuild > should generate rspack config correctly with projects
1180
1188
" isModule" : " unknown" ,
1181
1189
" jsc" : {
1182
1190
" experimental" : {
1183
- " cacheRoot" : " <ROOT>/node_modules/.cache/.swc" ,
1191
+ " cacheRoot" : " <ROOT>/packages/core/ node_modules/.cache/.swc" ,
1184
1192
" keepImportAttributes" : true ,
1185
1193
},
1186
1194
" externalHelpers" : true ,
@@ -1234,7 +1242,7 @@ exports[`prepareRsbuild > should generate rspack config correctly with projects
1234
1242
" isModule" : " unknown" ,
1235
1243
" jsc" : {
1236
1244
" experimental" : {
1237
- " cacheRoot" : " <ROOT>/node_modules/.cache/.swc" ,
1245
+ " cacheRoot" : " <ROOT>/packages/core/ node_modules/.cache/.swc" ,
1238
1246
" keepImportAttributes" : true ,
1239
1247
},
1240
1248
" externalHelpers" : true ,
@@ -1441,7 +1449,7 @@ exports[`prepareRsbuild > should generate rspack config correctly with projects
1441
1449
" library" : {
1442
1450
" type" : " commonjs2" ,
1443
1451
},
1444
- " path" : " <ROOT>/dist/.rstest-temp/test" ,
1452
+ " path" : " <ROOT>/packages/core/ dist/.rstest-temp/test" ,
1445
1453
" pathinfo" : false ,
1446
1454
" publicPath" : " /" ,
1447
1455
" webassemblyModuleFilename" : " static/wasm/[contenthash:8].module.wasm" ,
@@ -1497,7 +1505,7 @@ exports[`prepareRsbuild > should generate rspack config correctly with projects
1497
1505
" hoistMockModule" : true ,
1498
1506
" importMetaPathName" : true ,
1499
1507
" injectModulePathName" : true ,
1500
- " manualMockRoot" : " <ROOT>/__mocks__" ,
1508
+ " manualMockRoot" : " <ROOT>/packages/core/ __mocks__" ,
1501
1509
},
1502
1510
],
1503
1511
" affectedHooks" : undefined ,
@@ -1536,6 +1544,10 @@ exports[`prepareRsbuild > should generate rspack config correctly with projects
1536
1544
" .json" ,
1537
1545
" .cjs" ,
1538
1546
],
1547
+ " tsConfig" : {
1548
+ " configFile" : " <ROOT>/packages/core/tsconfig.json" ,
1549
+ " references" : " auto" ,
1550
+ },
1539
1551
},
1540
1552
" target" : " node" ,
1541
1553
" watch" : false ,
@@ -1548,7 +1560,7 @@ exports[`prepareRsbuild > should generate rspack config correctly with projects
1548
1560
1549
1561
exports [` prepareRsbuild > should generate rspack config correctly with projects 2` ] = `
1550
1562
{
1551
- " context" : " <ROOT>" ,
1563
+ " context" : " <ROOT>/packages/core " ,
1552
1564
" devtool" : " source-map" ,
1553
1565
" entry" : {},
1554
1566
" experiments" : {
@@ -1699,7 +1711,7 @@ exports[`prepareRsbuild > should generate rspack config correctly with projects
1699
1711
" isModule" : " unknown" ,
1700
1712
" jsc" : {
1701
1713
" experimental" : {
1702
- " cacheRoot" : " <ROOT>/node_modules/.cache/.swc" ,
1714
+ " cacheRoot" : " <ROOT>/packages/core/ node_modules/.cache/.swc" ,
1703
1715
" keepImportAttributes" : true ,
1704
1716
},
1705
1717
" externalHelpers" : true ,
@@ -1753,7 +1765,7 @@ exports[`prepareRsbuild > should generate rspack config correctly with projects
1753
1765
" isModule" : " unknown" ,
1754
1766
" jsc" : {
1755
1767
" experimental" : {
1756
- " cacheRoot" : " <ROOT>/node_modules/.cache/.swc" ,
1768
+ " cacheRoot" : " <ROOT>/packages/core/ node_modules/.cache/.swc" ,
1757
1769
" keepImportAttributes" : true ,
1758
1770
},
1759
1771
" externalHelpers" : true ,
@@ -1960,7 +1972,7 @@ exports[`prepareRsbuild > should generate rspack config correctly with projects
1960
1972
" library" : {
1961
1973
" type" : " commonjs2" ,
1962
1974
},
1963
- " path" : " <ROOT>/dist/.rstest-temp/test-node" ,
1975
+ " path" : " <ROOT>/packages/core/ dist/.rstest-temp/test-node" ,
1964
1976
" pathinfo" : false ,
1965
1977
" publicPath" : " /" ,
1966
1978
" webassemblyModuleFilename" : " static/wasm/[contenthash:8].module.wasm" ,
@@ -2016,7 +2028,7 @@ exports[`prepareRsbuild > should generate rspack config correctly with projects
2016
2028
" hoistMockModule" : true ,
2017
2029
" importMetaPathName" : true ,
2018
2030
" injectModulePathName" : true ,
2019
- " manualMockRoot" : " <ROOT>/__mocks__" ,
2031
+ " manualMockRoot" : " <ROOT>/packages/core/ __mocks__" ,
2020
2032
},
2021
2033
],
2022
2034
" affectedHooks" : undefined ,
@@ -2058,6 +2070,10 @@ exports[`prepareRsbuild > should generate rspack config correctly with projects
2058
2070
" mainFields" : [
2059
2071
" main" ,
2060
2072
],
2073
+ " tsConfig" : {
2074
+ " configFile" : " <ROOT>/packages/core/tsconfig.json" ,
2075
+ " references" : " auto" ,
2076
+ },
2061
2077
},
2062
2078
" target" : " node" ,
2063
2079
" watch" : false ,
@@ -2104,7 +2120,7 @@ exports[`prepareRsbuild > should generate swc config correctly with user customi
2104
2120
" isModule" : " unknown" ,
2105
2121
" jsc" : {
2106
2122
" experimental" : {
2107
- " cacheRoot" : " <ROOT>/node_modules/.cache/.swc" ,
2123
+ " cacheRoot" : " <ROOT>/packages/core/ node_modules/.cache/.swc" ,
2108
2124
" keepImportAttributes" : true ,
2109
2125
},
2110
2126
" externalHelpers" : true ,
0 commit comments