Skip to content

Commit e2feb32

Browse files
committed
feat: add jsx support
1 parent 2265e85 commit e2feb32

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/utils/function_change/diff.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ function getFunctionBlock (filePath: string) {
7575
'decorators-legacy',
7676
'typescript',
7777
'classProperties',
78-
'objectRestSpread'
78+
'objectRestSpread',
79+
'jsx',
7980
],
8081
sourceType: 'unambiguous'
8182
});

src/utils/handle_file_utils.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ function getFileAst (filePath: string): FileAstInfo {
192192
'decorators-legacy',
193193
'typescript',
194194
'classProperties',
195-
'objectRestSpread'
195+
'objectRestSpread',
196+
'jsx',
196197
],
197198
sourceType: 'unambiguous'
198199
});

0 commit comments

Comments
 (0)