@chonkylang/webpack-plugin
v0.1.2
Published
Chonky Webpack plugin — build integration for Webpack projects
Downloads
241
Maintainers
Readme
@chonkylang/webpack-plugin
Chonky is a machine-first web language for AI-driven development. @chonkylang/webpack-plugin registers a Webpack 5 integration that prepends a custom loader to *.ts, *.tsx, *.js, and *.jsx modules. The loader applies the same preprocess + Babel + chonkyBabelPlugin pipeline as the Vite plugin, using your chonky.config and effective mode.
Project home: github.com/adisonshadow/chonky
Capabilities
ChonkyWebpackPlugin:apply(compiler)injects the loader at the front ofmodule.rulesso Chonky runs before the rest of your pipeline.- Loader (
chonkyWebpackLoader): Per-file transform withprojectRootandmodeoptions, delegating to@chonkylang/transpilerfor parity with Vite behavior. - CJS-first publish: Default export is the plugin class; suitable for classic
require('@chonkylang/webpack-plugin')Webpack configs.
Usage
const ChonkyWebpackPlugin = require('@chonkylang/webpack-plugin').default;
module.exports = {
plugins: [
new ChonkyWebpackPlugin({ projectRoot: __dirname }),
],
};Peer dependency
- Webpack
^5
Installation
npm install @chonkylang/webpack-plugin webpack @babel/core --save-devAlso add @chonkylang/runtime (and @chonkylang/cli if you use CLI workflows) to the application workspace.
Chonky ecosystem (all packages)
| Package | README |
| --- | --- |
| @chonkylang/core | README |
| @chonkylang/runtime | README |
| @chonkylang/transpiler | README |
| @chonkylang/cli | README |
| @chonkylang/vite-plugin | README |
| @chonkylang/webpack-plugin (this package) | README |
| @chonkylang/ui | README |
| @chonkylang/devtools | README |
License
MIT — see the repository.
