angular/packages/compiler-cli/src/ngtsc
JoostK 7b1214eca2 feat(ngcc): support __spreadArray helper as used by TypeScript 4.2 (#41201)
In TypeScript 4.2 the `__spread` and `__spreadArrays` helpers were both
replaced by the new helper function `__spreadArray` in
microsoft/TypeScript#41523. These helpers may be used in downleveled
JavaScript bundles that ngcc has to process, so ngcc has the ability to
statically detect these helpers and provide evaluation logic for them.
Because Angular is adopting support for TypeScript 4.2 it becomes
possible for libraries to be compiled by TypeScript 4.2 and thus ngcc
has to add support for the `__spreadArray` helper. The deprecated
`__spread` and `__spreadArrays` helpers are not affected by this change.

Closes #40394

PR Close #41201
2021-03-16 11:06:31 -07:00
..
annotations refactor(compiler-cli): implement ɵɵngDeclareNgModule and ɵɵngDeclareInjector (#41080) 2021-03-15 13:26:51 -07:00
core perf(compiler-cli): ensure module resolution cache is reused for type-check program (#39693) 2021-03-09 10:41:08 -08:00
cycles perf(compiler-cli): use bound symbol in import graph in favor of module resolution (#40948) 2021-03-08 12:05:48 -08:00
diagnostics refactor(compiler-cli): error on cyclic imports in partial compilation (#40782) 2021-02-17 06:53:38 -08:00
entry_point refactor(compiler-cli): implement DeclarationNode node type (#38959) 2020-10-12 08:32:46 -07:00
file_system refactor(compiler-cli): split up NodeJSFileSystem class (#40281) 2021-01-08 09:34:44 -08:00
imports perf(compiler-cli): avoid module resolution in cycle analysis (#40948) 2021-03-08 12:05:49 -08:00
incremental perf(compiler-cli): detect semantic changes and their effect on an incremental rebuild (#40947) 2021-03-08 08:41:19 -08:00
indexer refactor(compiler-cli): identify structural directives (#40032) 2020-12-14 12:08:41 -08:00
logging build(compiler-cli): fix bazel deps rules for ngtsc testing packages (#37977) 2020-07-08 12:05:22 -07:00
metadata refactor(compiler-cli): identify structural directives (#40032) 2020-12-14 12:08:41 -08:00
modulewithproviders perf(compiler-cli): avoid module resolution in cycle analysis (#40948) 2021-03-08 12:05:49 -08:00
partial_evaluator feat(ngcc): support __spreadArray helper as used by TypeScript 4.2 (#41201) 2021-03-16 11:06:31 -07:00
perf refactor(compiler-cli): implement DeclarationNode node type (#38959) 2020-10-12 08:32:46 -07:00
reflection feat(ngcc): support __spreadArray helper as used by TypeScript 4.2 (#41201) 2021-03-16 11:06:31 -07:00
resource perf(compiler-cli): introduce fast path for resource-only updates (#40561) 2021-01-27 10:45:57 -08:00
routing build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
scope perf(compiler-cli): avoid module resolution in cycle analysis (#40948) 2021-03-08 12:05:49 -08:00
shims feat(compiler-cli): add support for TypeScript 4.0 (#38076) 2020-08-24 13:06:59 -07:00
sourcemaps fix(compiler-cli): update type castings for JSON.parse usage (#40710) 2021-02-09 10:48:43 -08:00
switch refactor(compiler-cli): remove usage of ts.updateIdentifier (#38076) 2020-08-24 13:07:02 -07:00
testing fix(core): ensure the type T of EventEmitter<T> can be inferred (#40644) 2021-02-03 09:07:29 -08:00
transform perf(compiler-cli): detect semantic changes and their effect on an incremental rebuild (#40947) 2021-03-08 08:41:19 -08:00
translator feat(compiler-cli): support producing Closure-specific PURE annotations (#41021) 2021-03-04 16:04:38 -08:00
typecheck docs(compiler-cli): add README.md for template type checking system (#41004) 2021-03-08 12:07:04 -08:00
util fix(language-service): include compilerOptions.rootDir in rootDirs (#40243) 2021-01-06 10:54:11 -08:00
program.ts refactor(compiler-cli): introduce CompilationTicket system for NgCompiler (#40561) 2021-01-27 10:45:57 -08:00
tsc_plugin.ts refactor(compiler-cli): introduce CompilationTicket system for NgCompiler (#40561) 2021-01-27 10:45:57 -08:00