mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-04 00:13:06 +08:00
Fix NGC build with Angular 6
This commit is contained in:
parent
d56826f12d
commit
bb6342b72a
@ -39,6 +39,17 @@ function transformImports(file: ts.SourceFile, ctx: ts.TransformationContext, ng
|
|||||||
ts.createIdentifier('IonicNativePlugin'),
|
ts.createIdentifier('IonicNativePlugin'),
|
||||||
...methods.map(m => ts.createIdentifier(m))
|
...methods.map(m => ts.createIdentifier(m))
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if (ngcBuild) {
|
||||||
|
importStatement.importClause.namedBindings.elements = importStatement.importClause.namedBindings.elements.map(
|
||||||
|
binding => {
|
||||||
|
binding.name = {
|
||||||
|
text: binding.escapedText
|
||||||
|
};
|
||||||
|
return binding;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return file;
|
return file;
|
||||||
|
Loading…
Reference in New Issue
Block a user