angular/packages
George Kalpakas 2bc3522e16 refactor(ngcc): make it easy to support more UMD wrapper function formats
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
2021-11-26 19:54:13 +02:00
..
animations docs(animations): remove incorrect information regarding animateChild (#44216) 2021-11-24 18:54:22 +00:00
bazel test: remove Ivy/ViewEngine switch helpers and obsolete tests (#44120) 2021-11-24 19:42:39 +00:00
benchpress build: update angular (#44024) 2021-11-03 15:06:36 -07:00
common test(common): change fallback default URL in MockPlatformLocation (#44211) 2021-11-24 18:55:33 +00:00
compiler ci: Upgrade tsec to 0.2.0. (#44205) 2021-11-24 18:55:58 +00:00
compiler-cli refactor(ngcc): make it easy to support more UMD wrapper function formats 2021-11-26 19:54:13 +02:00
core test: remove Ivy/ViewEngine switch helpers and obsolete tests (#44120) 2021-11-24 19:42:39 +00:00
docs docs: remove/update broken links in resources appearing on aio (#42232) 2021-05-26 14:21:12 -07:00
elements refactor(elements): remove non-existent schematic collection breaking with ng add (#44187) 2021-11-16 12:03:41 -08:00
examples test: remove Ivy/ViewEngine switch helpers and obsolete tests (#44120) 2021-11-24 19:42:39 +00:00
forms fix(forms): make the FormControlStatus available as a public API (#44183) 2021-11-17 10:37:28 -08:00
language-service refactor: delete the View Engine runtime (#43884) 2021-11-23 21:10:06 +00:00
localize refactor(localize): ensure schematic code runs as commonjs (#44016) 2021-11-04 18:54:54 +00:00
misc/angular-in-memory-web-api build: update angular (#44024) 2021-11-03 15:06:36 -07:00
platform-browser test: remove Ivy/ViewEngine switch helpers and obsolete tests (#44120) 2021-11-24 19:42:39 +00:00
platform-browser-dynamic refactor: delete the View Engine runtime (#43884) 2021-11-23 21:10:06 +00:00
platform-server test: remove Ivy/ViewEngine switch helpers and obsolete tests (#44120) 2021-11-24 19:42:39 +00:00
private/testing test: remove Ivy/ViewEngine switch helpers and obsolete tests (#44120) 2021-11-24 19:42:39 +00:00
router fix(router): prevent componentless routes from being detached (#44240) 2021-11-23 17:12:27 +00:00
service-worker refactor(service-worker): avoid unnecessary writes to cache when version fails (#43680) 2021-10-21 14:20:50 +00:00
upgrade test: remove Ivy/ViewEngine switch helpers and obsolete tests (#44120) 2021-11-24 19:42:39 +00:00
zone.js build: lock file maintenance (#44111) 2021-11-10 18:22:57 +00:00
BUILD.bazel build: Auto-gen tsec tsconfig files (#43440) 2021-09-17 17:17:34 +00:00
circular-deps-test.conf.js fix(platform-webworker): remove platform-webworker and platform-webworker-dynamic (#38846) 2020-09-30 09:13:59 -04:00
empty.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
goog.d.ts refactor(core): replace references to goog.LOCALE with goog.getLocale() (#43089) 2021-08-10 10:35:26 -07:00
license-banner.txt docs: update year (#40925) 2021-02-22 12:37:40 -08:00
README.md docs: add doc reference to npm package readme (#33911) 2019-11-20 14:46:23 -08:00
system.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
tsconfig-build.json build: enable esModuleInterop in TypeScript compilations (#43431) 2021-10-01 18:28:45 +00:00
tsconfig-legacy-saucelabs.json build: update tsconfigs to use ES2020 as target and module (#43431) 2021-10-01 18:28:42 +00:00
tsconfig-test.json refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
tsconfig-tsec-base.json build: update tsconfigs to use ES2020 as target and module (#43431) 2021-10-01 18:28:42 +00:00
tsconfig.json refactor(language-service): Remove View Engine code from language service package (#44064) 2021-11-10 01:20:04 +00:00
tsec-exemption.json build: Enable tsec checks for critical packages. (#43108) 2021-09-13 14:45:57 -07:00
types.d.ts build: replace @types/trusted-types dep with minimal type defs (#39211) 2020-10-15 09:08:00 -07:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT