From cdd4c9be6336aeb1a193bc3ca76f4c7b16f180ca Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Thu, 26 Jul 2018 22:48:12 +0300 Subject: [PATCH] feat(ivy): support custom prefix for imports in `DtsFileTransformer` (#25406) PR Close #25406 --- .../compiler-cli/src/ngtsc/transform/src/declaration.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/compiler-cli/src/ngtsc/transform/src/declaration.ts b/packages/compiler-cli/src/ngtsc/transform/src/declaration.ts index 495886d45e..dec8eb96f2 100644 --- a/packages/compiler-cli/src/ngtsc/transform/src/declaration.ts +++ b/packages/compiler-cli/src/ngtsc/transform/src/declaration.ts @@ -20,8 +20,8 @@ export class DtsFileTransformer { private ivyFields = new Map(); private imports: ImportManager; - constructor(private coreImportsFrom: ts.SourceFile|null) { - this.imports = new ImportManager(coreImportsFrom !== null); + constructor(private coreImportsFrom: ts.SourceFile|null, importPrefix?: string) { + this.imports = new ImportManager(coreImportsFrom !== null, importPrefix); } /** @@ -62,4 +62,4 @@ export class DtsFileTransformer { return dts; } -} \ No newline at end of file +}