File tree Expand file tree Collapse file tree
packages/ngtools/webpack/src/ivy Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " @angular/devkit-repo" ,
3- "version" : " 20.3.4-ion1 " ,
3+ "version" : " 20.3.4-ion3 " ,
44 "private" : true ,
55 "description" : " Software Development Kit for Angular" ,
66 "keywords" : [
Original file line number Diff line number Diff line change @@ -80,9 +80,6 @@ export function angularWebpackLoader(
8080 if ( result . declaration && fileEmitter . compilerOptions . declaration ) {
8181 let target = this . resourcePath . replace ( '.ts' , '.d.ts' ) ;
8282 if ( fileEmitter . compilerOptions . declarationDir ) {
83- if ( ! fileEmitter . compilerOptions . baseUrl ) {
84- throw new Error ( 'When declarationDir is specified, baseUrl is required as well' ) ;
85- }
8683 const relDir = path . relative ( path . join ( fileEmitter . compilerOptions . basePath ! , fileEmitter . compilerOptions . baseUrl || "./" ) , target ) ;
8784 target = path . join ( fileEmitter . compilerOptions . declarationDir , relDir ) ;
8885 }
You can’t perform that action at this time.
0 commit comments