fix(ivy): remove spurious comma in ngtsc-built .d.ts files (#24738)
On accident a comma was emitted between imports when generating .d.ts files. This commit removes it. PR Close #24738
This commit is contained in:
parent
cde0b4b361
commit
48394c64ae
@ -59,7 +59,7 @@ export class DtsFileTransformer {
|
|||||||
|
|
||||||
const imports = this.imports.getAllImports(tsPath, this.coreImportsFrom);
|
const imports = this.imports.getAllImports(tsPath, this.coreImportsFrom);
|
||||||
if (imports.length !== 0) {
|
if (imports.length !== 0) {
|
||||||
dts = imports.map(i => `import * as ${i.as} from '${i.name}';\n`).join() + dts;
|
dts = imports.map(i => `import * as ${i.as} from '${i.name}';\n`).join('') + dts;
|
||||||
}
|
}
|
||||||
|
|
||||||
return dts;
|
return dts;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user