Skip to content

Commit 87af9a0

Browse files
authoredMay 28, 2024··
feat: add jsx support in react without config. (#481)
1 parent 1ca6bc5 commit 87af9a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/configs/react.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { isPackageExists } from 'local-pkg'
22
import { ensurePackages, interopDefault, toArray } from '../utils'
33
import type { OptionsFiles, OptionsOverrides, OptionsTypeScriptWithTypes, TypedFlatConfigItem } from '../types'
4-
import { GLOB_TS, GLOB_TSX } from '../globs'
4+
import { GLOB_JS, GLOB_JSX, GLOB_TS, GLOB_TSX } from '../globs'
55

66
// react refresh
77
const ReactRefreshAllowConstantExportPackages = [
@@ -21,7 +21,7 @@ export async function react(
2121
options: OptionsTypeScriptWithTypes & OptionsOverrides & OptionsFiles = {},
2222
): Promise<TypedFlatConfigItem[]> {
2323
const {
24-
files = [GLOB_TS, GLOB_TSX],
24+
files = [GLOB_JS, GLOB_JSX, GLOB_TS, GLOB_TSX],
2525
overrides = {},
2626
} = options
2727

0 commit comments

Comments
 (0)
Please sign in to comment.