@chonkylang/vite-plugin
v0.1.2
Published
Chonky Vite plugin — build integration for Vite projects
Maintainers
Readme
@chonkylang/vite-plugin
Chonky is a machine-first web language for AI-driven development. @chonkylang/vite-plugin wires Chonky into Vite as a pre plugin: it preprocesses sources, runs Babel with chonkyBabelPlugin, and respects your project’s chonky.config and Vite mode (development / production).
Project home: github.com/adisonshadow/chonky
What it transforms
- Files matching
*.ts,*.tsx,*.js,*.jsxoutsidenode_modules. machine:assertregions viapreprocessbefore Babel.defineRequirementand related patterns via the Chonky Babel plugin.- In development,
.tsx/.jsxfiles additionally go through the plugin so render metadata and dev instrumentation (for example_ChonkyWrapper) stay active; production mode tightens what runs so debug-only code can tree-shake.
API
import { chonkyVitePlugin } from '@chonkylang/vite-plugin';
export default {
plugins: [
chonkyVitePlugin({ projectRoot: process.cwd() /* optional */ }),
],
};Peer dependency
- Vite
^5 || ^6 || ^7 || ^8
Installation
npm install @chonkylang/vite-plugin vite @babel/core --save-devYou typically also install @chonkylang/runtime (and optionally @chonkylang/cli) in the same app.
Chonky ecosystem (all packages)
| Package | README |
| --- | --- |
| @chonkylang/core | README |
| @chonkylang/runtime | README |
| @chonkylang/transpiler | README |
| @chonkylang/cli | README |
| @chonkylang/vite-plugin (this package) | README |
| @chonkylang/webpack-plugin | README |
| @chonkylang/ui | README |
| @chonkylang/devtools | README |
License
MIT — see the repository.
