angular/packages/core
arturovt b14fbe1497 refactor(core): tree-shake getNgModuleDef error (#60339)
Currently, the error thrown in `getNgModuleDef` is guarded by `throwIfNotFound`, which is only set to `true` when `ɵɵsetNgModuleScope` is called in production. In all other cases, `throwIfNotFound` is never used in production. This means that if NgModules aren't used, `getNgModuleDef` is never called with the second argument. We can split it into two functions to allow tree-shaking of the error when NgModules aren't used at all.

PR Close #60339
2025-04-30 08:50:52 -07:00
..
global refactor(docs-infra): use interpolation instead of innerHTML for better perf (#58913) 2024-11-27 10:59:18 +01:00
primitives refactor(core): Add createSignalTuple (#60903) 2025-04-29 08:46:39 -07:00
rxjs-interop refactor(core): rename loader parameter to stream for rxResource (#60919) 2025-04-23 19:34:50 +00:00
schematics refactor(compiler-cli): add flag to enable selectorless (#60977) 2025-04-24 13:02:39 -07:00
src refactor(core): tree-shake getNgModuleDef error (#60339) 2025-04-30 08:50:52 -07:00
test build: Run browsers tests without platform-browser-dynamic (#60937) (#61060) 2025-04-30 08:21:02 -07:00
testing refactor(core): expose getCleanupHook via private exports (#61017) 2025-04-29 10:30:17 -07:00
BUILD.bazel refactor(core): Move getCurrentInjector/setCurrentInjector to primitives package. (#60090) 2025-02-28 18:47:08 +00:00
index.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00
package.json feat(core): update Node.js version support (#60545) 2025-03-26 20:42:16 -07:00
PACKAGE.md
public_api.ts refactor: update license text to point to angular.dev (#57901) 2024-09-24 15:33:00 +02:00