Show DEV: Introducing klap šŸ‘ - a zero config, zero dependency bundler for tiny javascript packages

osdevisnot

Abhishek Shende

Posted on October 30, 2019

Show DEV: Introducing klap šŸ‘ - a zero config, zero dependency bundler for tiny javascript packages

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

šŸ’– šŸ’Ŗ šŸ™… šŸš©
osdevisnot
Abhishek Shende

Posted on October 30, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related