We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c7abb9f commit a34dd27Copy full SHA for a34dd27
1 file changed
packages/plugin-react/src/index.ts
@@ -251,6 +251,13 @@ export default function viteReact(opts: Options = {}): PluginOption[] {
251
const viteReactJsx: Plugin = {
252
name: 'vite:react-jsx',
253
enforce: 'pre',
254
+ config() {
255
+ return {
256
+ optimizeDeps: {
257
+ include: ['react/jsx-dev-runtime']
258
+ }
259
260
+ },
261
resolveId(id: string) {
262
return id === runtimeId ? id : null
263
},
0 commit comments