Skip to content

Commit 4a2e229

Browse files
Copilothi-ogawa
andauthored
fix(react): use rolldownOptions instead of deprecated rollupOptions in optimizeDeps on rolldown-vite (#976)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: hi-ogawa <4232207+hi-ogawa@users.noreply.github.com>
1 parent 14c2324 commit 4a2e229

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugin-react/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export default function viteReact(opts: Options = {}): Plugin[] {
163163
jsxRefreshExclude: makeIdFiltersToMatchWithQuery(exclude),
164164
},
165165
optimizeDeps: {
166-
rollupOptions: { transform: { jsx: { runtime: 'automatic' } } },
166+
rolldownOptions: { transform: { jsx: { runtime: 'automatic' } } },
167167
},
168168
}
169169
}

0 commit comments

Comments
 (0)