We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tested the following code in the TypeScript AST Viewer:
const module = await import('./my-function.function');
It shows that this call expression is of type SyntaxKind.ImportKeyword, which isn't currently handled in convertFile.
SyntaxKind.ImportKeyword
This snippet could help detect it:
const initializer = declaration.getInitializerIfKind(SyntaxKind.AwaitExpression); const callExpression = initializer?.getExpressionIfKind(SyntaxKind.CallExpression); const importExpression = callExpression?.getExpressionIfKind(SyntaxKind.ImportKeyword);
Expected output:
const module = await import('./my-function.function.js');
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
I tested the following code in the TypeScript AST Viewer:
It shows that this call expression is of type
SyntaxKind.ImportKeyword
, which isn't currently handled in convertFile.This snippet could help detect it:
Expected output:
The text was updated successfully, but these errors were encountered: