angular-docs-cn/packages
Tobias Bosch edd5f5a333 perf(compiler): make the creation of `ts.Program` faster. (#19275)
We now create 2 programs with exactly the same fileNames and
exactly the same `import` / `export` declarations,
allowing TS to reuse the structure of first program
completely. When passing in an oldProgram and the files didn’t change,
TS can also reuse the old program completely.

This is possible buy adding generated files to TS
in `host.geSourceFile` via `ts.SourceFile.referencedFiles`.

This commit also:
- has a minor side effect on how we generate shared stylesheets:
  - previously every import in a stylesheet would generate a new
    `.ngstyles.ts` file.
  - now, we only generate 1 `.ngstyles.ts` file per entry in `@Component.styleUrls`.
  This was required as we need to be able to determine the program files
  without loading the resources (which can be async).
- makes all angular related methods in `CompilerHost`
  optional, allowing to just use a regular `ts.CompilerHost` as `CompilerHost`.
- simplifies the logic around `Compiler.analyzeNgModules` by introducing `NgAnalyzedFile`.

Perf impact: 1.5s improvement in compiling angular io
PR Close #19275
2017-09-19 16:55:23 -07:00
..
animations Revert "fix(animations): ensure animateChild() works with all inner leave animations (#19006)" 2017-09-05 23:08:26 -05:00
bazel refactor(compiler): remove all source-level traces to tsc-wrapped (#18966) 2017-09-13 20:47:37 -04:00
benchpress build: publish tree of files rather than FESMs (#18541) 2017-08-31 15:34:50 -07:00
common build(common): inject deprecated `getPluralCase` for treeshaking (#19136) 2017-09-13 13:52:56 -04:00
compiler perf(compiler): make the creation of `ts.Program` faster. (#19275) 2017-09-19 16:55:23 -07:00
compiler-cli perf(compiler): make the creation of `ts.Program` faster. (#19275) 2017-09-19 16:55:23 -07:00
core refactor: core, http & platform-webworker to remove public private class separation (#19143) 2017-09-14 13:38:06 -04:00
docs refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
examples refactor: update angular to support TypeScript 2.4 2017-09-12 10:31:30 -07:00
forms docs(aio): provide link text for AbstractControl references in reactive directives for forms 2017-09-08 17:05:39 -04:00
http refactor: core, http & platform-webworker to remove public private class separation (#19143) 2017-09-14 13:38:06 -04:00
language-service perf(compiler): make the creation of `ts.Program` faster. (#19275) 2017-09-19 16:55:23 -07:00
platform-browser refactor: core, http & platform-webworker to remove public private class separation (#19143) 2017-09-14 13:38:06 -04:00
platform-browser-dynamic perf(compiler): make the creation of `ts.Program` faster. (#19275) 2017-09-19 16:55:23 -07:00
platform-server fix(platform-server): support setting innerText property 2017-09-12 14:19:25 -04:00
platform-webworker refactor: core, http & platform-webworker to remove public private class separation (#19143) 2017-09-14 13:38:06 -04:00
platform-webworker-dynamic build: publish tree of files rather than FESMs (#18541) 2017-08-31 15:34:50 -07:00
router refactor(router): remove deprecated `RouterOutlet` properties 2017-09-08 16:19:32 -04:00
tsc-wrapped fix(tsc-wrapped): deduplicate metadata only when the module is the same (#19249) 2017-09-18 21:15:49 -07:00
upgrade fix(upgrade): add testability hook to downgraded component 2017-09-12 16:59:27 -04:00
README.md Revert "docs: Remove unneeded file (#18106)" 2017-07-20 16:46:47 -05:00
empty.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
es6-subset.d.ts refactor: update paths from modules/@angular to packages 2017-03-08 16:29:28 -08:00
license-banner.txt refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
rollup.config.js build: publish tree of files rather than FESMs (#18541) 2017-08-31 15:34:50 -07:00
system.d.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00
tsconfig-build.json refactor: update angular to support TypeScript 2.4 2017-09-12 10:31:30 -07:00
tsconfig.json refactor(common): move generated locale files (#18907) 2017-08-29 11:26:10 -05:00
types.d.ts refactor: move angular source to /packages rather than modules/@angular 2017-03-08 16:29:27 -08:00

README.md

Angular

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

License: MIT