This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
- Configure build and give the entry as per your entry point file name. (Refer
vite.config.js
) - Configure
main
,module
,exports
andfiles
inpackage.json
as per your build destination. (Referpackage.json
, the build destination folder by default isdist
here) - Name of the package is the name you provide in
package.json
(Which should be unique to publish at npm; you can also use @organization_name/package_name format to add to a specific organization in your npm profile)