|
2 | 2 |
|
3 | 3 | exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config in each format > inspected Rsbuild configs 1`] = ` |
4 | 4 | "{ |
5 | | - dev: { |
6 | | - hmr: true, |
7 | | - liveReload: true, |
8 | | - browserLogs: true, |
9 | | - watchFiles: [ |
10 | | - { |
11 | | - paths: [ |
12 | | - '<WORKSPACE>/tsconfig.json' |
13 | | - ], |
14 | | - type: 'reload-server' |
15 | | - } |
16 | | - ], |
17 | | - assetPrefix: '/', |
18 | | - writeToDisk: false, |
19 | | - cliShortcuts: false, |
20 | | - client: { |
21 | | - path: '/rsbuild-hmr', |
22 | | - port: '', |
23 | | - host: '', |
24 | | - overlay: true, |
25 | | - reconnect: 100 |
26 | | - }, |
27 | | - lazyCompilation: { |
28 | | - imports: true, |
29 | | - entries: false |
30 | | - } |
31 | | - }, |
32 | 5 | server: { |
33 | 6 | port: 3000, |
34 | 7 | host: '0.0.0.0', |
@@ -86,6 +59,57 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i |
86 | 59 | }, |
87 | 60 | tsconfigPath: '<WORKSPACE>/tsconfig.json' |
88 | 61 | }, |
| 62 | + tools: { |
| 63 | + cssExtract: { |
| 64 | + loaderOptions: {}, |
| 65 | + pluginOptions: { |
| 66 | + ignoreOrder: true |
| 67 | + } |
| 68 | + } |
| 69 | + }, |
| 70 | + security: { |
| 71 | + nonce: '', |
| 72 | + sri: { |
| 73 | + enable: false |
| 74 | + } |
| 75 | + }, |
| 76 | + performance: { |
| 77 | + profile: false, |
| 78 | + printFileSize: true, |
| 79 | + removeConsole: false, |
| 80 | + removeMomentLocale: false, |
| 81 | + chunkSplit: { |
| 82 | + strategy: 'split-by-experience' |
| 83 | + } |
| 84 | + }, |
| 85 | + mode: 'production', |
| 86 | + dev: { |
| 87 | + hmr: true, |
| 88 | + liveReload: true, |
| 89 | + browserLogs: true, |
| 90 | + watchFiles: [ |
| 91 | + { |
| 92 | + paths: [ |
| 93 | + '<WORKSPACE>/tsconfig.json' |
| 94 | + ], |
| 95 | + type: 'reload-server' |
| 96 | + } |
| 97 | + ], |
| 98 | + assetPrefix: '/', |
| 99 | + writeToDisk: false, |
| 100 | + cliShortcuts: false, |
| 101 | + client: { |
| 102 | + path: '/rsbuild-hmr', |
| 103 | + port: '', |
| 104 | + host: '', |
| 105 | + overlay: true, |
| 106 | + reconnect: 100 |
| 107 | + }, |
| 108 | + lazyCompilation: { |
| 109 | + imports: true, |
| 110 | + entries: false |
| 111 | + } |
| 112 | + }, |
89 | 113 | output: { |
90 | 114 | target: 'web', |
91 | 115 | cleanDistPath: 'auto', |
@@ -132,30 +156,6 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i |
132 | 156 | }, |
133 | 157 | emitAssets: true |
134 | 158 | }, |
135 | | - tools: { |
136 | | - cssExtract: { |
137 | | - loaderOptions: {}, |
138 | | - pluginOptions: { |
139 | | - ignoreOrder: true |
140 | | - } |
141 | | - } |
142 | | - }, |
143 | | - security: { |
144 | | - nonce: '', |
145 | | - sri: { |
146 | | - enable: false |
147 | | - } |
148 | | - }, |
149 | | - performance: { |
150 | | - profile: false, |
151 | | - printFileSize: true, |
152 | | - removeConsole: false, |
153 | | - removeMomentLocale: false, |
154 | | - chunkSplit: { |
155 | | - strategy: 'split-by-experience' |
156 | | - } |
157 | | - }, |
158 | | - mode: 'production', |
159 | 159 | root: '<WORKSPACE>', |
160 | 160 | plugins: [ |
161 | 161 | { |
@@ -318,7 +318,6 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i |
318 | 318 | aggregateTimeout: 0 |
319 | 319 | }, |
320 | 320 | experiments: { |
321 | | - lazyBarrel: true, |
322 | 321 | inlineEnum: true, |
323 | 322 | inlineConst: true, |
324 | 323 | typeReexportsPresence: true, |
@@ -1021,7 +1020,6 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i |
1021 | 1020 | aggregateTimeout: 0 |
1022 | 1021 | }, |
1023 | 1022 | experiments: { |
1024 | | - lazyBarrel: true, |
1025 | 1023 | inlineEnum: true, |
1026 | 1024 | inlineConst: true, |
1027 | 1025 | typeReexportsPresence: true, |
@@ -1718,7 +1716,6 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i |
1718 | 1716 | aggregateTimeout: 0 |
1719 | 1717 | }, |
1720 | 1718 | experiments: { |
1721 | | - lazyBarrel: true, |
1722 | 1719 | inlineEnum: true, |
1723 | 1720 | inlineConst: true, |
1724 | 1721 | typeReexportsPresence: true, |
@@ -2320,7 +2317,6 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i |
2320 | 2317 | aggregateTimeout: 0 |
2321 | 2318 | }, |
2322 | 2319 | experiments: { |
2323 | | - lazyBarrel: true, |
2324 | 2320 | inlineEnum: true, |
2325 | 2321 | inlineConst: true, |
2326 | 2322 | typeReexportsPresence: true, |
@@ -2923,7 +2919,6 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i |
2923 | 2919 | aggregateTimeout: 0 |
2924 | 2920 | }, |
2925 | 2921 | experiments: { |
2926 | | - lazyBarrel: true, |
2927 | 2922 | inlineEnum: true, |
2928 | 2923 | inlineConst: true, |
2929 | 2924 | typeReexportsPresence: true, |
@@ -3481,6 +3476,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i |
3481 | 3476 | [ |
3482 | 3477 | { |
3483 | 3478 | "config": { |
| 3479 | + "dev": undefined, |
3484 | 3480 | "output": { |
3485 | 3481 | "assetPrefix": "auto", |
3486 | 3482 | "dataUriLimit": 0, |
@@ -3767,6 +3763,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i |
3767 | 3763 | }, |
3768 | 3764 | { |
3769 | 3765 | "config": { |
| 3766 | + "dev": undefined, |
3770 | 3767 | "output": { |
3771 | 3768 | "assetPrefix": "auto", |
3772 | 3769 | "dataUriLimit": 0, |
@@ -4050,6 +4047,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i |
4050 | 4047 | }, |
4051 | 4048 | { |
4052 | 4049 | "config": { |
| 4050 | + "dev": undefined, |
4053 | 4051 | "output": { |
4054 | 4052 | "distPath": { |
4055 | 4053 | "css": "./", |
@@ -4294,6 +4292,7 @@ exports[`Should compose create Rsbuild config correctly > Merge Rsbuild config i |
4294 | 4292 | }, |
4295 | 4293 | { |
4296 | 4294 | "config": { |
| 4295 | + "dev": undefined, |
4297 | 4296 | "output": { |
4298 | 4297 | "distPath": { |
4299 | 4298 | "css": "./", |
|
0 commit comments