Skip to content

ydong-li/vite-plugin-react

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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')]
}

About

React Fast Refresh plugin for Vite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%