Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

Commit

Permalink
fix: 修复 jsx 后缀报错的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
yesmeck committed Sep 1, 2019
1 parent 10cd29e commit 88d0668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/remax-cli/src/getEntries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface Entries {
}

function searchFile(file: string, ext?: string) {
const exts = [ext, 'ts', 'tsx', 'js'].filter(e => e);
const exts = [ext, 'ts', 'tsx', 'js', 'jsx'].filter(e => e);

for (const e of exts) {
const extFile = file + '.' + e;
Expand Down

0 comments on commit 88d0668

Please sign in to comment.