Aloha Dev.to community π
I recently authored a zero config (0cJS), zero dependency tool to publish tiny NPM packages. The motivation behind klap
is to provide best practices setup for Modern Javascript Packages, while focusing on zero configuration and zero dependency.
β¨ Features
π zero config: bundle your library using only a package.json
π₯ zero config: typescript support (just rename *.js
to *.ts
)
π zero config: code transforms using babel macros
π zero dependency: uses gcc-style bundling.
π tiny bundles for all inputs
π₯ Modern JS syntax with class properties, async/await, and generators
π Supports react
and styled-components
out of the box.
π creates multiple output formats cjs
, esm
and umd
β‘ Built in Minification and Gzip Size Tracking
π Built in development server for quick prototyping.
π Github Repo
https://github.com/osdevisnot/klap
klap
is powered by babel and rollup, but uses gcc-style bundling to achieve zero-dependency.
Feel free to π the github repo if you like the approach
π Examples
https://github.com/osdevisnot/klap/tree/master/examples
The examples folder showcases usage of the bundler for few scenarios.
Give it a try next time you want to publish a package to NPM
Top comments (0)