Skip to content

Commit b9c0e3b

Browse files
committed
fix(@angular-devkit/build-angular): disable declaration and declarationMap
When building an application or testing a library. TypeScript declarations are not needed. Closes #20103 (cherry picked from commit 2ef3949)
1 parent 990e847 commit b9c0e3b

File tree

1 file changed

+2
-0
lines changed
  • packages/angular_devkit/build_angular/src/webpack/configs

1 file changed

+2
-0
lines changed

packages/angular_devkit/build_angular/src/webpack/configs/typescript.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ function createIvyPlugin(
6060

6161
const compilerOptions: CompilerOptions = {
6262
sourceMap: buildOptions.sourceMap.scripts,
63+
declaration: false,
64+
declarationMap: false,
6365
};
6466

6567
if (buildOptions.preserveSymlinks !== undefined) {

0 commit comments

Comments
 (0)