@iterate-ai/viteplugin
v1.2.4
Published
A Vite plugin for setting up your project with Iterate AI
Downloads
567
Readme
Iterate Vite Plugin
Description
A Vite plugin that provides sourcemaps support for Iterate AI.
1. Installation
Choose your preferred package manager:
# Using npm
npm install @iterate-ai/viteplugin
# Using yarn
yarn add @iterate-ai/viteplugin
# Using pnpm
pnpm add @iterate-ai/viteplugin
2. Setup
Add the plugin to your Vite configuration file (vite.config.js
or vite.config.ts
):
import { defineConfig } from "vite";
import { iterateVitePlugin } from "@iterate-ai/viteplugin";
export default defineConfig({
plugins: [
iterateVitePlugin({
apiKey: "YOUR_API_KEY", // Your unique API key
project: "YOUR_PROJECT_NAME", // The name of your project
organization: "YOUR_ORG_NAME", // Your organization's name
}),
],
build: {
sourcemap: true, // Enable source maps
},
});
3. Configuration Details
| Option | Description | Required |
| -------------- | ------------------------- | -------- |
| apiKey
| Your API key | ✅ |
| project
| Name of your project | ✅ |
| organization
| Name of your organization | ✅ |