MCPcopy
hub / github.com/angular/angular-cli / isZonelessApp

Function isZonelessApp

packages/schematics/angular/utility/project-targets.ts:25–35  ·  view source on GitHub ↗
(project: ProjectDefinition)

Source from the content-addressed store, hash-verified

23}
24
25export function isZonelessApp(project: ProjectDefinition): boolean {
26 const buildTarget = project.targets.get('build');
27 if (!buildTarget?.options?.polyfills) {
28 return true;
29 }
30
31 const polyfills = buildTarget.options.polyfills as string[] | string;
32 const polyfillsList = Array.isArray(polyfills) ? polyfills : [polyfills];
33
34 return !polyfillsList.includes('zone.js');
35}

Callers 1

index.tsFile · 0.90

Calls 1

getMethod · 0.65

Tested by

no test coverage detected