Skip to content

Commit e758731

Browse files
committed
fix: make it work correctly with TSX files
1 parent 08bc25c commit e758731

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export default declare((_: any, options: Config) => {
8888

8989
return {
9090
name: "import-move-codemod",
91-
inherits: typescript,
91+
inherits: () => typescript(_, { ...options, isTSX: true }),
9292
visitor: {
9393
Program(path) {
9494
const from = getFrom(options);

0 commit comments

Comments
 (0)