Skip to content

Commit 2535249

Browse files
qramilqfi3ework
authored andcommitted
fix(builder): returns empty object instead undefined
1 parent a390a95 commit 2535249

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/builder-rsbuild/src/react-shims.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const applyReactShims = async (
7070
): Promise<RsbuildConfig | undefined> => {
7171
const isReactVersion18 = await getIsReactVersion18or19(options)
7272
if (isReactVersion18) {
73-
return undefined
73+
return {}
7474
}
7575

7676
return {

0 commit comments

Comments
 (0)