angular-docs-cn/packages
Paul Gschwendtner b1fa1bf0d5 fix(dev-infra): `ng_rollup_bundle` rule should error if import cannot be resolved (#42760)
Rollup just prints a warning if an import cannot be resolved and ends up
being treated as an external dependency. This in combination with the
`silent = True` attribute for `rollup_bundle` means that bundles might
end up being extremely small without people noticing that it misses
actual imports.

To improve this situation, the warning is replaced by an error if
an import cannot be resolved.

This unveiles an issue with the `ng_rollup_bundle` macro from
dev-infra where imports in View Engine were not resolved but ended
up being treated as external. This did not prevent benchmarks using
this macro from working because the ConcatJS devserver had builtin
resolution for workspace manifest paths. Though given the new check
for no unresolved imports, this will now cause errors within Rollup, and
we need to fix the resolution. We can fix the issue by temporarily
enabling workspace linking. This does not have any performance
downsides.

To enable workspace linking (which we might need more often in the
future given the linker taking over patched module resolution), we
had to rename the `angular` dependency to a more specific one so
that the Angular linker could link into `node_modules/angular`.

PR Close #42760
2021-07-09 14:50:14 -07:00
..
animations build: use api-golden tool from dev-infra for testing public API (#42688) 2021-06-30 11:43:48 -07:00
bazel test(bazel): update `example_package.golden` (#42804) 2021-07-09 12:14:56 -07:00
benchpress test: clean up internal testing utilities (#42177) 2021-05-26 20:07:25 +00:00
common build: use api-golden tool from dev-infra for testing public API (#42688) 2021-06-30 11:43:48 -07:00
compiler feat(compiler): support number separators in templates (#42672) 2021-06-30 10:36:15 -07:00
compiler-cli fix(compiler-cli): inline type checking instructions no longer prevent incremental reuse (#42759) 2021-07-07 15:17:25 -07:00
core docs(core): initializeApp method should return function (#42743) 2021-07-08 14:50:18 -07:00
docs docs: remove/update broken links in resources appearing on aio (#42232) 2021-05-26 14:21:12 -07:00
elements build: use api-golden tool from dev-infra for testing public API (#42688) 2021-06-30 11:43:48 -07:00
examples fix(dev-infra): `ng_rollup_bundle` rule should error if import cannot be resolved (#42760) 2021-07-09 14:50:14 -07:00
forms docs(forms): add diff between add and set control (#42638) 2021-07-08 10:27:43 -07:00
language-service fix(dev-infra): `ng_rollup_bundle` rule should error if import cannot be resolved (#42760) 2021-07-09 14:50:14 -07:00
localize refactor(service-worker): switch to the official TypeScript typings (#42736) 2021-07-08 10:28:22 -07:00
misc/angular-in-memory-web-api feat(core): support TypeScript 4.3 (#42022) 2021-06-04 11:17:09 -07:00
platform-browser build: use api-golden tool from dev-infra for testing public API (#42688) 2021-06-30 11:43:48 -07:00
platform-browser-dynamic build: use api-golden tool from dev-infra for testing public API (#42688) 2021-06-30 11:43:48 -07:00
platform-server build: use api-golden tool from dev-infra for testing public API (#42688) 2021-06-30 11:43:48 -07:00
private/testing docs: convert the last `my-app` components to `app-root` (#42256) 2021-05-25 22:13:36 +00:00
router refactor(router): Adjust behavior for computed navigation restoration (#42751) 2021-07-09 10:19:09 -07:00
service-worker fix(service-worker): correctly handle unrecoverable state when a client no longer exists (#42736) 2021-07-08 10:28:22 -07:00
upgrade fix(dev-infra): `ng_rollup_bundle` rule should error if import cannot be resolved (#42760) 2021-07-09 14:50:14 -07:00
zone.js build: lock file maintenance (#42770) 2021-07-08 14:53:17 -07:00
BUILD.bazel build: remove unused no-strict tsconfig file (#42506) 2021-06-07 10:47:47 -07:00
README.md docs: add doc reference to npm package readme (#33911) 2019-11-20 14:46:23 -08:00
circular-deps-test.conf.js fix(platform-webworker): remove platform-webworker and platform-webworker-dynamic (#38846) 2020-09-30 09:13:59 -04:00
empty.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
goog.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
license-banner.txt docs: update year (#40925) 2021-02-22 12:37:40 -08:00
system.d.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04: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: exclude compiler compliance tests from Saucelabs tests (#41866) 2021-04-30 14:15:10 -07:00
types.d.ts build: replace @types/trusted-types dep with minimal type defs (#39211) 2020-10-15 09:08:00 -07: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