Sourced from @vitejs/plugin-react
's\r\nreleases.
\r\n\r\nv4.3.1
\r\nFix support for React Compiler with React 18
\r\nThe previous version made this assumption that the compiler was only\r\nusable with React 19, but it's possible to use it with React 18 and a\r\ncustom
\r\nruntimeModule
: https://gist.github.com/poteto/37c076bf112a07ba39d0e5f0645fec43When using a custom
\r\nruntimeModule
, the plugin will not\r\ntry to pre-optimizereact/compiler-runtime
dependency.Reminder: Vite expect code outside of
\r\nnode_modules
to be\r\nESM, so you will need to update the gist withimport React from\r\n'react'
.
Sourced from @vitejs/plugin-react
's\r\nchangelog.
\r\n\r\n4.3.1 (2024-06-10)
\r\nFix support for React Compiler with React 18
\r\nThe previous version made this assumption that the compiler was only\r\nusable with React 19, but it's possible to use it with React 18 and a\r\ncustom
\r\nruntimeModule
: https://gist.github.com/poteto/37c076bf112a07ba39d0e5f0645fec43When using a custom
\r\nruntimeModule
, the plugin will not\r\ntry to pre-optimizereact/compiler-runtime
dependency.Reminder: Vite expect code outside of
\r\nnode_modules
to be\r\nESM, so you will need to update the gist withimport React from\r\n'react'
.
1609186
\r\nrelease: plugin-react@4.3.1ea647d1
\r\nfix: handle using compiler with React 18 (#330)51bf7ea
\r\nrelease: v5.2.13e6913d1
\r\nfix: backport to 5.2 (#17411)