mirror of
https://gitee.com/openharmony/third_party_jsframework
synced 2024-11-23 06:40:59 +00:00
!792 master分支解决sdk中使用import type编译报错问题
Merge pull request !792 from fupengfei/master
This commit is contained in:
commit
b17b8662e5
@ -68,6 +68,9 @@ export function getImportDeclaration(node: Node, sourceFile: SourceFile): Import
|
||||
const importClause = importNode.importClause;
|
||||
if (importClause !== undefined) {
|
||||
importElements = sourceFile.text.substring(importClause.pos, importClause.end).trimStart().trimEnd();
|
||||
if (importElements.startsWith('type ')) {
|
||||
importElements = importElements.replace('type ', '');
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user