angular/packages
JoostK ec0d1bf6f3 fix(compiler-cli): insert constant statements after the first group of imports (#56431)
The linker inserts the constant statements that are needed to support compiled templates
after the import statements of an ESM file, but it failed to account for import statements
that are not at the top of the file. This is typically seen in FESM files where multiple
individual ESMs have been concatenated into a single ESM file, with imports in various places.
The linker would then find the very last import statement to insert the constant statements
after, but this may result in TDZ errors for component templates that have been emitted
earlier in the file.

This commit updates the Babel linker plugin to insert constant statements after the last
import of the first import group, therefore avoiding the TDZ error.

Fixes #56403

PR Close #56431
2024-06-13 10:15:02 -07:00
..
animations build: update Node.js to match Angular CLI engines (#56187) 2024-06-03 18:00:46 +00:00
bazel build: update dependency @rollup/plugin-commonjs to v26 (#56281) 2024-06-05 18:36:51 +00:00
benchpress fix(benchpress): adjust supported browser names for headless chrome (#56360) 2024-06-11 08:25:11 -07:00
common build: update Node.js to match Angular CLI engines (#56187) 2024-06-03 18:00:46 +00:00
compiler refactor(compiler): expose shorthand object metadata in expression AST (#56405) 2024-06-13 10:12:54 -07:00
compiler-cli fix(compiler-cli): insert constant statements after the first group of imports (#56431) 2024-06-13 10:15:02 -07:00
core refactor(core): Use ActionResolver in Dispatcher. (#56369) 2024-06-13 08:50:46 -07:00
docs/di docs: remove outdated/unsupported webworker doc (#49856) 2023-04-17 14:01:41 +00:00
elements build: update Node.js to match Angular CLI engines (#56187) 2024-06-03 18:00:46 +00:00
examples refactor: migrate docs, examples, private, service worker and upgrade to prettier formatting (#54163) 2024-01-30 20:08:40 +00:00
forms build: update Node.js to match Angular CLI engines (#56187) 2024-06-03 18:00:46 +00:00
language-service docs: language-service - Fix quick info URLs (#56416) 2024-06-13 09:23:46 -07:00
localize build: update babel dependencies to v7.24.7 (#56373) 2024-06-12 13:11:13 -07:00
misc/angular-in-memory-web-api build: bump in-memory-web-api to v18 (#56018) 2024-05-23 12:00:29 +02:00
platform-browser build: update Node.js to match Angular CLI engines (#56187) 2024-06-03 18:00:46 +00:00
platform-browser-dynamic build: update Node.js to match Angular CLI engines (#56187) 2024-06-03 18:00:46 +00:00
platform-server refactor(core): Refactor parts of event_replay into a shared library that will be used with global event delegation. (#56172) 2024-06-05 16:35:23 +00:00
private/testing refactor(core): properly type withBody and withHead testing helpers (#54801) 2024-03-11 08:59:55 -07:00
router build: update Node.js to match Angular CLI engines (#56187) 2024-06-03 18:00:46 +00:00
service-worker build: update Node.js to match Angular CLI engines (#56187) 2024-06-03 18:00:46 +00:00
upgrade build: update Node.js to match Angular CLI engines (#56187) 2024-06-03 18:00:46 +00:00
zone.js fix(zone.js): allow enabling default beforeunload handling (#55875) 2024-06-12 13:06:21 -07:00
BUILD.bazel docs(docs-infra): Add missing API entries to ADEV (#54530) 2024-02-21 16:41:33 +00:00
circular-deps-test.conf.js ci: complete migration to prettier formatting (#55580) 2024-04-29 14:00:17 -07:00
empty.ts
goog.d.ts
license-banner.txt build: update licence date. (#55129) 2024-04-08 11:31:12 -07:00
README.md
system.d.ts
tsconfig-build.json build: align with internal tsconfig options (#51728) 2023-09-12 11:39:42 -07:00
tsconfig-legacy-saucelabs.json refactor(compiler): drop obsolete NgFactory and NgSummary config options (#48268) 2023-02-21 13:03:59 -08:00
tsconfig-test.json build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
tsconfig-tsec-base.json refactor(core): throw an error when hydration marker is missing from DOM (#51170) 2023-08-04 11:31:49 -04:00
tsconfig.json refactor(router): Update integration tests to cover navigation and history API (#53799) 2024-01-30 15:04:02 +00:00
tsec-exemption.json fix(core): hardening attribute and property binding rules for <iframe> elements (#47964) 2022-11-09 00:47:56 -08:00
types.d.ts build: update to jasmine 4.0 (#45558) 2022-04-11 16:25:28 +00: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