File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed
packages/angular_devkit/build_angular/src/tools/esbuild Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -252,13 +252,10 @@ export function createServerPolyfillBundleOptions(
252
252
sourceFileCache ?: SourceFileCache ,
253
253
) : BundlerOptionsFactory | undefined {
254
254
const polyfills : string [ ] = [ ] ;
255
- const zoneFlagsNamespace = 'angular:zone-flags/placeholder' ;
256
255
const polyfillsFromConfig = new Set ( options . polyfills ) ;
257
- let hasZoneJs = false ;
258
256
259
257
if ( polyfillsFromConfig . has ( 'zone.js' ) ) {
260
- hasZoneJs = true ;
261
- polyfills . push ( zoneFlagsNamespace , 'zone.js/node' ) ;
258
+ polyfills . push ( 'zone.js/node' ) ;
262
259
}
263
260
264
261
if (
@@ -311,22 +308,6 @@ export function createServerPolyfillBundleOptions(
311
308
} ;
312
309
313
310
buildOptions . plugins ??= [ ] ;
314
-
315
- // Disable Zone.js uncaught promise rejections to provide cleaner stacktraces.
316
- if ( hasZoneJs ) {
317
- buildOptions . plugins . unshift (
318
- createVirtualModulePlugin ( {
319
- namespace : zoneFlagsNamespace ,
320
- entryPointOnly : false ,
321
- loadContent : ( ) => ( {
322
- contents : `globalThis.__zone_symbol__DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION = true;` ,
323
- loader : 'js' ,
324
- resolveDir : workspaceRoot ,
325
- } ) ,
326
- } ) ,
327
- ) ;
328
- }
329
-
330
311
buildOptions . plugins . push ( createRxjsEsmResolutionPlugin ( ) ) ;
331
312
332
313
return ( ) => buildOptions ;
You can’t perform that action at this time.
0 commit comments