@csr632/vite-plugin-react
TypeScript icon, indicating that this package has built-in type declarations

1.1.1 • Public • Published

vite-plugin-react

Provides React Fast Refresh support for Vite.

Note: Vite requires using @pika/react and @pika/react-dom which are ESM mirrors of the official React packages. This plugin automatically injects the correct alias for you so you can just import React from 'react' as usual.

This plugin is included by default in the create-vite-app React template.

// vite.config.js
module.exports = {
  jsx: 'react',
  plugins: [require('vite-plugin-react')]
}

Readme

Keywords

Package Sidebar

Install

npm i @csr632/vite-plugin-react

Weekly Downloads

1

Version

1.1.1

License

MIT

Unpacked Size

9.8 kB

Total Files

15

Last publish

Collaborators

  • csr632