File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed
e2e/fixtures/rspack-zoneless-csr-css
packages/angular-rspack/src/lib/models Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ module.exports = () => {
4
4
return createConfig (
5
5
{
6
6
options : {
7
- zoneless : true ,
8
7
root : __dirname ,
9
8
index : './src/index.html' ,
10
9
assets : [
Original file line number Diff line number Diff line change @@ -343,10 +343,6 @@ export interface AngularRspackPluginOptions {
343
343
* The tsconfig file for web workers.
344
344
*/
345
345
webWorkerTsConfig ?: string ;
346
- /**
347
- * Enables zoneless mode; relevant for SSR prerendering.
348
- */
349
- zoneless ?: boolean ;
350
346
}
351
347
352
348
export interface NormalizedAngularRspackPluginOptions
Original file line number Diff line number Diff line change @@ -216,6 +216,10 @@ export async function normalizeOptions(
216
216
type : budget . type as any ,
217
217
} ) ) ;
218
218
219
+ const zoneless = options . polyfills
220
+ ? ! options . polyfills . includes ( 'zone.js' )
221
+ : true ;
222
+
219
223
return {
220
224
advancedOptimizations,
221
225
appShell : options . appShell ?? false ,
@@ -265,7 +269,7 @@ export async function normalizeOptions(
265
269
vendorChunk : options . vendorChunk ?? false ,
266
270
verbose : options . verbose ?? false ,
267
271
watch : options . watch ?? false ,
268
- zoneless : options . zoneless ?? false ,
272
+ zoneless,
269
273
} ;
270
274
}
271
275
You can’t perform that action at this time.
0 commit comments