For more information see our website rttist.org and docs docs.rttist.org.
npm install vite-plugin-rttist -D
# or
pnpm add vite-plugin-rttist -D
# or
yarn add vite-plugin-rttist -D
import { rttistPlugin } from "vite-plugin-rttist"; // < 1. Import the plugin
import { defineConfig } from "vite";
import { join } from "path";
import solid from "vite-plugin-solid";
import packageJson from "./package.json";
export default defineConfig({
plugins: [
// < 2. Initialize the plugin
rttistPlugin({
// Package/project info used to generate type identifiers
packageInfo: { name: packageJson.name, rootDir: __dirname },
// "rootDir" from tsconfig
tsRootDir: join(__dirname, "src"),
}),
solid(),
],
});
This package is versioned by the Vite
versions.
New versions will be added only when there are some breaking changes in Vite API, so use the latest version lower or equal to your Vite version. In case of any problems, please file an issue.
This project is licensed under the MIT license.