JavaScript tree-shaking

Open-source JavaScript projects categorized as tree-shaking

Top 4 JavaScript tree-shaking Projects

  • You-Dont-Need-Momentjs

    List of functions which you can use to replace moment.js + ESLint Plugin

    Project mention: What is better, Date-fns or moment.js? | /r/Frontend | 2023-06-29
  • webpack-common-shake

    CommonJS Tree Shaker plugin for WebPack

    Project mention: CommonJS Is Hurting JavaScript | news.ycombinator.com | 2023-06-30

    While I agree the dynamic nature of CommonJS would be problematic, there were successful projects around treeshaking commonjs[0] that worked really well.

    I think dynamic imports have some of the same footguns here, to be honest. Can't deny ESM is easier to statically analyze though, that much appears to be true across the board based on available evidence.

    [0]: https://github.com/indutny/webpack-common-shake

  • SurveyJS

    Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.

  • common-shakeify

    browserify tree shaking plugin using `common-shake`

  • serverless-plugin-tree-shake

    Shake the dependency tree and only package files needed

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-06-30.

JavaScript tree-shaking related posts

Index

What are some of the best open-source tree-shaking projects in JavaScript? This list will help you:

Project Stars
1 You-Dont-Need-Momentjs 13,219
2 webpack-common-shake 914
3 common-shakeify 105
4 serverless-plugin-tree-shake 25
The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com