Microbundle produces esm, cjs, umd bundles with your code compiled to syntax that works pretty much everywhere. While it's possible to customize the browser or Node versions you wish to support using a browserslist configuration, the default setting is optimal and strongly recommended. In addition to the above formats, Microbundle also outputs a modern bundle specially designed to work in all modern browsers. This bundle preserves most modern JS features when compiling your code, but ensures the result runs in 95% of web browsers without needing to be transpiled. Specifically, it uses Babel's "bugfixes" mode (previously known as preset-modules) to target the set of browsers that support <script type="module"> - that allows syntax like async/await, tagged templates, arrow functions, destructured and rest parameters, etc. The result is generally smaller and faster to execute than the plain esm bundle.

Features

  • One dependency to bundle your library using only a package.json
  • Support for ESnext & async/await (via Babel & async-to-promises)
  • Produces tiny, optimized code for all inputs
  • Creates multiple output formats for each entry (CJS, UMD & ESM)
  • 0 configuration TypeScript support
  • Built-in Terser compression & gzipped bundle size tracking

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Microbundle

Microbundle Web Site

Other Useful Business Software
Job Evaluation and Talent Management Software Icon
Job Evaluation and Talent Management Software

For human resources departments in search of a tool to manage time, expenses, leave, documents, recruitment, and onboarding

Encompassing Visions (ENCV), industry-leading job evaluation and pay equity software, is the best choice for organizations requiring transparent, comprehensive, and objective Job Evaluation software designed to help them ensure equal pay for work of equal value.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Microbundle!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Libraries, JavaScript Package Managers

Registered

2021-08-31