angular-cn/packages
Rado Kirov 294e56d529 refactor(platform-browser): Hoist functions to workaround optimization bug. (#32230)
Technically, function definitions can live anywhere because they are
hoisted. However, in this case Closure optimizations break when exported
function definitions are referred in another static object that is
exported.

The bad pattern is:
```
exports const obj = {f};
export function f() {...}
```

which turns to the following in Closure's module system:
```
goog.module('m');

exports.obj = {f};

function f() {...}
exports.f = f;
```

which badly optimizes to (note module objects are collapsed)
```
var b = a; var a = function() {...};  // now b is undefined.
```

This is an optimizer bug and should be fixed in Closure, but in the
meantime this change is a noop and will unblock other changes we want to
make.

PR Close #32230
2020-02-25 13:12:27 -08:00
..
animations build: add npm_integration_test && angular_integration_test (#33927) 2020-02-24 08:59:18 -08:00
bazel build: add npm_integration_test && angular_integration_test (#33927) 2020-02-24 08:59:18 -08:00
benchpress build: add npm_integration_test && angular_integration_test (#33927) 2020-02-24 08:59:18 -08:00
common build: add npm_integration_test && angular_integration_test (#33927) 2020-02-24 08:59:18 -08:00
compiler test(compiler): add correct use case of ngFor in r3 ast (#35671) 2020-02-25 13:09:08 -08:00
compiler-cli refactor: update tscplugin api to match google3 (#35455) 2020-02-24 17:29:33 -08:00
core perf(core): avoid recursive scope recalculation when TestBed.overrideModule is used (#35454) 2020-02-25 13:11:42 -08:00
docs refactor(core): remove deprecated Renderer (#33019) 2019-10-08 09:23:00 -07:00
elements test: disable broken saucelabs tests with “fixme-saucelabs-ivy” & “fixme-saucelabs-ve” tags (#35516) 2020-02-24 17:27:21 -08:00
examples docs: changes AoT to AOT for consistency (#35112) 2020-02-04 10:43:33 -08:00
forms test: disable broken saucelabs tests with “fixme-saucelabs-ivy” & “fixme-saucelabs-ve” tags (#35516) 2020-02-24 17:27:21 -08:00
http build: add npm_integration_test && angular_integration_test (#33927) 2020-02-24 08:59:18 -08:00
language-service fix(language-service): get the right 'ElementAst' in the nested HTML tag (#35317) 2020-02-25 13:12:08 -08:00
localize fix(localize): improve placeholder mismatch error message (#35593) 2020-02-24 09:11:21 -08:00
platform-browser refactor(platform-browser): Hoist functions to workaround optimization bug. (#32230) 2020-02-25 13:12:27 -08:00
platform-browser-dynamic build: add npm_integration_test && angular_integration_test (#33927) 2020-02-24 08:59:18 -08:00
platform-server build: add npm_integration_test && angular_integration_test (#33927) 2020-02-24 08:59:18 -08:00
platform-webworker build: add npm_integration_test && angular_integration_test (#33927) 2020-02-24 08:59:18 -08:00
platform-webworker-dynamic build: add npm_integration_test && angular_integration_test (#33927) 2020-02-24 08:59:18 -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 test: disable broken saucelabs tests with “fixme-saucelabs-ivy” & “fixme-saucelabs-ve” tags (#35516) 2020-02-24 17:27:21 -08:00
service-worker fix(service-worker): treat 503 as offline (#35595) 2020-02-25 13:10:10 -08:00
upgrade build: add npm_integration_test && angular_integration_test (#33927) 2020-02-24 08:59:18 -08:00
zone.js feat: add a temp solution to support passive event listeners. (#34503) 2020-02-24 17:30:04 -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 refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
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 refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
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