File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed
Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ export default function viteReact(opts: Options = {}): Plugin[] {
5858 jsxImportDevRuntime ,
5959 jsxImportRuntime ,
6060 ] ,
61- rollupOptions : { jsx : { mode : 'automatic' } } ,
61+ rollupOptions : { transform : { jsx : { runtime : 'automatic' } } } ,
6262 } ,
6363 }
6464 } ,
Original file line number Diff line number Diff line change @@ -132,7 +132,9 @@ const react = (_options?: Options): Plugin[] => {
132132 optimizeDeps : {
133133 include : [ `${ options . jsxImportSource } /jsx-dev-runtime` ] ,
134134 ...( 'rolldownVersion' in vite
135- ? { rollupOptions : { jsx : { mode : 'automatic' } } }
135+ ? {
136+ rollupOptions : { transform : { jsx : { runtime : 'automatic' } } } ,
137+ }
136138 : { esbuildOptions : { jsx : 'automatic' } } ) ,
137139 } ,
138140 } ) ,
Original file line number Diff line number Diff line change @@ -159,7 +159,9 @@ export default function viteReact(opts: Options = {}): Plugin[] {
159159 jsxRefreshInclude : include ,
160160 jsxRefreshExclude : exclude ,
161161 } ,
162- optimizeDeps : { rollupOptions : { jsx : { mode : 'automatic' } } } ,
162+ optimizeDeps : {
163+ rollupOptions : { transform : { jsx : { runtime : 'automatic' } } } ,
164+ } ,
163165 }
164166 }
165167 }
You can’t perform that action at this time.
0 commit comments