I tested the following code in the [TypeScript AST Viewer](https://ts-ast-viewer.com/): ```ts 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](https://github.com/bennycode/ts2esm/blob/v2.2.7/src/converter/convertFile.ts). This snippet could help detect it: ```ts const initializer = declaration.getInitializerIfKind(SyntaxKind.AwaitExpression); const callExpression = initializer?.getExpressionIfKind(SyntaxKind.CallExpression); const importExpression = callExpression?.getExpressionIfKind(SyntaxKind.ImportKeyword); ``` Expected output: ```ts const module = await import('./my-function.function.js'); ```
Activity
[-]Dynamic Imports Are Not Converted[/-][+]Dynamic Imports are not handled[/+]