mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-21 22:31:50 +08:00
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.
This commit is contained in:
parent
71424e1c93
commit
7632bafe72
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user