Forked from https://github.com/vitejs/vite-plugin-react
npm install @hareprnd/vite-plugin-react
or
yarn add @hareprnd/vite-plugin-react
This package usage direction is just the same as the forked source in https://www.npmjs.com/package/@vitejs/plugin-react , the only different thing is:
// import react from '@vitejs/plugin-react'
// change the code above to:
import react from '@hareprnd/vite-plugin-react'