Skip to content

clgtIO/autobundle

Repository files navigation

Autobundle

Automatic pack your dependency in a bundle, publish it to NPM, powered by esbuild and ncc.

Story

Have you ever care about how many modules(files) your dependency are included, Autobundle help you make a bundle from your dependency, you just need import one module from. Or if you are a bundlephobia, this is exactly built for you.

The benefits

  • Pack all modules of dependency into one file
  • Generally faster bootup time and less I/O overhead (in node platform or webpack/etc. bundler)
  • Tree-shake your dependency
  • Understand how large of your dependency
  • Minimal node_modules
  • You don't need to create new repository, new package, publish it, etc. Just for bundling job, it's easier with autobundle

How it works

Same bundlephobia.com, Autobundle use technology like esbuild, webpack to bundling your dependency and automatic publish to NPM registry.

Getting started

Go to New Issue and request

  • Note 1: We highly recommend you only bundling the dependency connect a little dependencies (or the core package), because all dependencies will put into the bundle. You should test again after bundling the package.
  • Note 2: This will also power off the tree-shakeable of dependency.

Bundled packages

TODO

  • create definition file (d.ts) file (currently esbuild not supported)
  • ncc engine
  • flow: test if the generated package is installable
  • "sideEffects" option
  • comment the externals suggestion when failed

Contributing

See Contributing

About

automatic pack your dependency in a bundle, powered by esbuild

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published