@esmx/vite-react
The React preset for @esmx/vite. It adds @vitejs/plugin-react (JSX transform + Fast Refresh) on top of the base Vite integration, and re-exports everything from @esmx/vite.
Installation
react and react-dom are peer dependencies and must be installed in your project.
Type Exports
ViteReactAppOptions
Configuration options, identical to ViteAppOptions. The React plugin is injected automatically through the config hook, applying to every build target and the dev server.
Function Exports
createViteReactApp
Create a Vite + React Esmx application instance.
Parameters:
esmx— Esmx framework instanceoptions— Vite React application configuration options
Returns:
- Returns a
Promisethat resolves to the created application instance
src/entry.node.ts
Re-exports
This package re-exports all members of @esmx/vite (e.g. createViteApp, BuildTarget, vite), so you can import the base APIs directly from @esmx/vite-react.