[![Workflows - CI][workflows-ci-shield]][workflows-ci-url] [![npm package][npm-package-shield]][npm-package-url] [![bundlephobia size][bundlephobia-size-shield]][bundlephobia-size-url] ![npm download per month][npm-download-shield] [![npm license][npm-lic

Usage no npm install needed!

<script type="module">
  import jihchiVitePluginRescript from 'https://cdn.skypack.dev/@jihchi/vite-plugin-rescript';



Workflows - CI npm package bundlephobia size npm download per month npm license

Getting Started

If you are looking for a template to quickly start a project using Vite, ReScript and React, take a look at vitejs-template-react-rescript, the template depends on this plugin.


npm i -D @jihchi/vite-plugin-rescript


yarn add -D @jihchi/vite-plugin-rescript

Configure your vite plugin in vite.config.ts:

import { defineConfig } from 'vite';
import createReScriptPlugin from '@jihchi/vite-plugin-rescript';

export default defineConfig({
  plugins: [createReScriptPlugin()],