chore(package): upgrade to angular 11

BREAKING CHANGE: ionic-native now requires at least Angular 10 with ts-lib 2.0

Co-Authored-By: Daniel Sogl <mytechde@outlook.com>
This commit is contained in:
Daniel Sogl
2021-01-23 18:33:36 +01:00
parent 0467787085
commit a96faf1378
3 changed files with 101 additions and 56 deletions
+1
View File
@@ -4,6 +4,7 @@ import { getMethodsForDecorator } from '../helpers';
function transformImports(file: ts.SourceFile, ctx: ts.TransformationContext, ngcBuild?: boolean) {
// remove angular imports
if (!ngcBuild) {
// @ts-expect-error
file.statements = (file.statements as any).filter(
(s: any) => !(s.kind === ts.SyntaxKind.ImportDeclaration && s.moduleSpecifier.text === '@angular/core')
);