We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 908d2a9 commit 99fcacbCopy full SHA for 99fcacb
src/struc/index.js
@@ -42,7 +42,7 @@ export default async function (srcpath, targetpath) {
42
43
const {isEntry, isRF, isFuncComp, isRNEntry} = getFileInfo(ast)
44
if (isRNEntry) return []
45
-
+ targetpath = targetpath.indexOf('.jsx') > 0 ? targetpath.replace('.jsx', '.js') : targetpath
46
if (isEntry && isRF) { // 入口文件 保证入口文件一定最先处理
47
const entryResult = handleEntry(ast, targetpath)
48
entryFilePath = entryResult.filepath
0 commit comments