mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
Previously, ngcc could only handle UMD modules whose wrapper function was implemented as a `ts.ConditionalExpression` (i.e. using a ternary operator). This is the format emitted by popular bundlers, such as Rollup. However, this failed to account for a different format, using `if/else` statements, such as the one [emitted by Webpack][1]. This commit prepares ngcc for supporting different UMD wrapper function formats by decoupling the operation of parsing the wrapper function body to capture the various factory function calls and that of operating on the factory function calls (for example, to read or update their arguments). In a subsequent commit, this will be used to add support for the Webpack format. [1]: https://webpack.js.org/configuration/output/#type-umd |
||
|---|---|---|
| .. | ||
| analysis | ||
| dependencies | ||
| entry_point_finder | ||
| execution | ||
| host | ||
| locking | ||
| migrations | ||
| packages | ||
| rendering | ||
| writing | ||
| command_line_options.ts | ||
| constants.ts | ||
| main.ts | ||
| ngcc_options.ts | ||
| path_mappings.ts | ||
| utils.ts | ||