Skip to content

Commit 17fdcc8

Browse files
Copilothi-ogawa
andauthored
fix(react-swc,react-oxc): use rolldownOptions instead of deprecated rollupOptions (#978)
Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: hi-ogawa <[email protected]>
1 parent 4a2e229 commit 17fdcc8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/plugin-react-oxc/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default function viteReact(opts: Options = {}): Plugin[] {
5757
jsxImportDevRuntime,
5858
jsxImportRuntime,
5959
],
60-
rollupOptions: { transform: { jsx: { runtime: 'automatic' } } },
60+
rolldownOptions: { transform: { jsx: { runtime: 'automatic' } } },
6161
},
6262
}
6363
},

packages/plugin-react-swc/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ const react = (_options?: Options): Plugin[] => {
126126
include: [`${options.jsxImportSource}/jsx-dev-runtime`],
127127
...('rolldownVersion' in vite
128128
? {
129-
rollupOptions: { transform: { jsx: { runtime: 'automatic' } } },
129+
rolldownOptions: {
130+
transform: { jsx: { runtime: 'automatic' } },
131+
},
130132
}
131133
: { esbuildOptions: { jsx: 'automatic' } }),
132134
},

0 commit comments

Comments
 (0)