angular-cn/packages
George Kalpakas cfbb1a1e77 fix(ngcc): correctly detect dependencies in CommonJS (#34528)
Previously, `CommonJsDependencyHost.collectDependencies()` would only
find dependencies via imports of the form `var foo = require('...');` or
`var foo = require('...'), bar = require('...');` However, CommonJS
files can have imports in many different forms. By failing to recognize
other forms of imports, the associated dependencies were missed, which
in turn resulted in entry-points being compiled out-of-order and failing
due to that.

While we cannot easily capture all different types of imports, this
commit enhances `CommonJsDependencyHost` to recognize the following
common forms of imports:

- Imports in property assignments. E.g.:
  `exports.foo = require('...');` or
  `module.exports = {foo: require('...')};`

- Imports for side-effects only. E.g.:
  `require('...');`

- Star re-exports (with both emitted and imported heleprs). E.g.:
  `__export(require('...'));` or
  `tslib_1.__exportStar(require('...'), exports);`

PR Close #34528
2020-01-13 09:48:20 -08:00
..
animations Revert "refactor: handle breaking changes in rules_nodejs 1.0.0 (#34589)" (#34730) 2020-01-10 14:12:15 -08:00
bazel build: bump year (#34651) 2020-01-13 07:21:43 -08:00
benchpress Revert "build: upgrade to rules_nodejs 1.0.0 (first stable release) (#34589)" (#34730) 2020-01-10 14:12:15 -08:00
common style(common): remove unnecessary private annotation (#34734) 2020-01-13 07:17:42 -08:00
compiler Revert "refactor: handle breaking changes in rules_nodejs 1.0.0 (#34589)" (#34730) 2020-01-10 14:12:15 -08:00
compiler-cli fix(ngcc): correctly detect dependencies in CommonJS (#34528) 2020-01-13 09:48:20 -08:00
core fix(ivy): do not reset view dirty state in check no changes mode (#34495) 2020-01-13 09:43:16 -08:00
docs refactor(core): remove deprecated Renderer (#33019) 2019-10-08 09:23:00 -07:00
elements Revert "build: upgrade to rules_nodejs 1.0.0 (first stable release) (#34589)" (#34730) 2020-01-10 14:12:15 -08:00
examples Revert "refactor: handle breaking changes in rules_nodejs 1.0.0 (#34589)" (#34730) 2020-01-10 14:12:15 -08:00
forms Revert "refactor: handle breaking changes in rules_nodejs 1.0.0 (#34589)" (#34730) 2020-01-10 14:12:15 -08:00
http Revert "refactor: handle breaking changes in rules_nodejs 1.0.0 (#34589)" (#34730) 2020-01-10 14:12:15 -08:00
language-service fix(language-service): CRLF offset in inline template (#34737) 2020-01-13 07:16:50 -08:00
localize Revert "build: upgrade to rules_nodejs 1.0.0 (first stable release) (#34589)" (#34730) 2020-01-10 14:12:15 -08:00
platform-browser Revert "refactor: handle breaking changes in rules_nodejs 1.0.0 (#34589)" (#34730) 2020-01-10 14:12:15 -08:00
platform-browser-dynamic Revert "refactor: handle breaking changes in rules_nodejs 1.0.0 (#34589)" (#34730) 2020-01-10 14:12:15 -08:00
platform-server Revert "refactor: handle breaking changes in rules_nodejs 1.0.0 (#34589)" (#34730) 2020-01-10 14:12:15 -08:00
platform-webworker Revert "refactor: handle breaking changes in rules_nodejs 1.0.0 (#34589)" (#34730) 2020-01-10 14:12:15 -08:00
platform-webworker-dynamic build: set up all packages to publish via wombot proxy (#33747) 2019-11-13 11:34:33 -08:00
private/testing build: migrate determining if Ivy is enabled in typescript genrule files to use angular_ivy_enabled (#33983) 2019-11-26 16:38:40 -05:00
router Revert "refactor: handle breaking changes in rules_nodejs 1.0.0 (#34589)" (#34730) 2020-01-10 14:12:15 -08:00
service-worker Revert "refactor: handle breaking changes in rules_nodejs 1.0.0 (#34589)" (#34730) 2020-01-10 14:12:15 -08:00
upgrade docs(upgrade): add example links to `downgradeComponent()` function docs (#34406) 2019-12-16 07:45:00 -08:00
zone.js build: bump year (#34651) 2020-01-13 07:21:43 -08:00
BUILD.bazel build: reference zone.js from source directly instead of npm. (#33046) 2019-11-06 00:48:34 +00:00
README.md docs: add doc reference to npm package readme (#33911) 2019-11-20 14:46:23 -08:00
empty.ts
goog.d.ts fix(ivy): use goog.LOCALE for Closure Compiler to define default LOCALE_ID (#31519) 2019-07-16 13:02:10 -04:00
license-banner.txt build: bump year (#34651) 2020-01-13 07:21:43 -08:00
system.d.ts
tsconfig-build-no-strict.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-build.json refactor(core): ensure compatibility with typescript strict flag (#30993) 2019-07-18 14:21:25 -07:00
tsconfig-test.json refactor: fix typescript strict flag failures in all tests (#30993) 2019-07-18 14:21:26 -07:00
tsconfig.json build: consolidate @angular-devkit/build-angular to the root package.json (#34002) 2019-12-02 10:49:12 -08:00
types.d.ts build: reference zone.js from source directly instead of npm. (#33046) 2019-11-06 00:48:34 +00:00

README.md

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