@coherent.js/build-tools
v1.0.0-beta.5
Published
Build tools and bundler integrations for Coherent.js (Vite, Webpack, Rollup)
Maintainers
Readme
@coherent.js/build-tools
Build tool integrations for Coherent.js, providing seamless integration with popular bundlers and build systems.
Supported Build Tools
- Vite - Plugin and configuration helpers
- Webpack - Loader and plugin integration
- Rollup - Plugin for component bundling
Installation
npm install @coherent.js/build-toolsExports
Build and development tools
Modular Imports (Tree-Shakable)
- Build utilities:
@coherent.js/build-tools
Example Usage
import { buildProject } from '@coherent.js/build-tools';Note: All exports are tree-shakable. Import only what you need for optimal bundle size.
Usage
Vite Integration
import { createVitePlugin } from '@coherent.js/build-tools/vite';
export default {
plugins: [
createVitePlugin()
]
};Webpack Integration
import { CoherentLoader } from '@coherent.js/build-tools/webpack';
export default {
module: {
rules: [
{
test: /\.coherent\.js$/,
use: 'coherent-loader'
}
]
}
};Rollup Integration
import { createRollupPlugin } from '@coherent.js/build-tools/rollup';
export default {
plugins: [
createRollupPlugin()
]
};