Function
isZonelessApp
(project: ProjectDefinition)
Source from the content-addressed store, hash-verified
| 23 | } |
| 24 | |
| 25 | export 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 | } |
Tested by
no test coverage detected