Repository navigation
fix(@angular/build): respect tsconfig declarationMap and compilationMode in library builder - #34318
Conversation
…ode in library builder Remove schema defaults for `declarationMap` and `compilationMode` in `@angular/build:library` and preserve `declarationMap` when reading TypeScript configuration for library builds so values configured in `tsconfig.lib.json` / `tsconfig.lib.prod.json` are respected unless explicitly overridden in `angular.json`.
There was a problem hiding this comment.
Code Review
This pull request updates the Angular library builder to respect the compilationMode and declarationMap settings from the project's tsconfig.json when they are not explicitly configured in the builder options. It removes the default values for these options from the schema and option normalization, allowing them to be resolved dynamically from the compiler options. It also updates the compilation pipeline, bundler, and manifest generation to use these resolved values, and adds comprehensive unit tests to verify the fallback and override behaviors. I have no feedback to provide as there are no review comments.
|
This PR was merged into the repository. The changes were merged into the following branches:
|
|
This pull request has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Remove schema defaults for
declarationMapandcompilationModein@angular/build:libraryand preservedeclarationMapwhen reading TypeScript configuration for library builds so values configured intsconfig.lib.json/tsconfig.lib.prod.jsonare respected unless explicitly overridden inangular.json.