Skip to content

Commit

Permalink
fix: add jsx (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
Drigtime authored and develar committed Jan 15, 2019
1 parent d2433f6 commit a22d1a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/electron-webpack/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ export async function configure(type: ConfigurationType, env: ConfigurationEnv |

async function computeEntryFile(srcDir: string, projectDir: string): Promise<string | null> {
const candidates: Array<string> = []
for (const ext of ["ts", "js", "tsx"]) {
for (const ext of ["ts", "js", "tsx", "jsx"]) {
for (const name of ["index", "main", "app"]) {
candidates.push(`${name}.${ext}`)
}
Expand Down

0 comments on commit a22d1a0

Please sign in to comment.