Skip to content

Commit

Permalink
refactor: remove usages of deprecated version of `createImportDeclara…
Browse files Browse the repository at this point in the history
…tion`

The overload of `createImportDeclaration` with the `decorators` parameter is deprecated. This change removes the deprecated usage.
  • Loading branch information
alan-agius4 authored and angular-robot[bot] committed Nov 28, 2022
1 parent a07d701 commit dfb0c88
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion packages/ngtools/webpack/src/ivy/transformation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ export function replaceBootstrap(
if (!bootstrapNamespace) {
bootstrapNamespace = nodeFactory.createUniqueName('__NgCli_bootstrap_');
bootstrapImport = nodeFactory.createImportDeclaration(
undefined,
undefined,
nodeFactory.createImportClause(
false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ function createResourceImport(
);
resourceImportDeclarations.push(
nodeFactory.createImportDeclaration(
undefined,
undefined,
nodeFactory.createImportClause(false, importName, undefined),
urlLiteral,
Expand Down

0 comments on commit dfb0c88

Please sign in to comment.