mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-23 07:19:58 +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';`];
|
const polyfills = [`import '@angular/platform-server/init';`];
|
||||||
|
|
||||||
if (options.polyfills?.includes('zone.js')) {
|
if (options.polyfills?.includes('zone.js')) {
|
||||||
polyfills.push(`import 'zone.js/fesm2015/zone-node.js';`);
|
polyfills.push(`import 'zone.js/node';`);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (jit) {
|
if (jit) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user