From 7632bafe72fb76a0b4fa92bc50a93a6ed9fe0906 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Wed, 13 Sep 2023 07:50:40 +0000 Subject: [PATCH] refactor(@angular-devkit/build-angular): remove deep import of `zone.js/node` This is no longer needed as `zone.js` now has proper package exports. --- .../build_angular/src/tools/esbuild/application-code-bundle.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/angular_devkit/build_angular/src/tools/esbuild/application-code-bundle.ts b/packages/angular_devkit/build_angular/src/tools/esbuild/application-code-bundle.ts index a8f13638853a..225bab797081 100644 --- a/packages/angular_devkit/build_angular/src/tools/esbuild/application-code-bundle.ts +++ b/packages/angular_devkit/build_angular/src/tools/esbuild/application-code-bundle.ts @@ -162,7 +162,7 @@ export function createServerCodeBundleOptions( const polyfills = [`import '@angular/platform-server/init';`]; if (options.polyfills?.includes('zone.js')) { - polyfills.push(`import 'zone.js/fesm2015/zone-node.js';`); + polyfills.push(`import 'zone.js/node';`); } if (jit) {