common-shakeify
webpack-common-shake
common-shakeify | webpack-common-shake | |
---|---|---|
1 | 2 | |
104 | 914 | |
-1.0% | - | |
0.0 | 0.0 | |
over 1 year ago | about 1 year ago | |
JavaScript | JavaScript | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
common-shakeify
-
Why NodeJS in Front Ends?
Tree shakers, which "shakes" unused or dead codes from your JS files. One of them is common-shakeify
webpack-common-shake
-
CommonJS Is Hurting JavaScript
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
-
[AskJS] What are still present issues in contemporary (2022) JavaScript?
Tree shaking in CommonJS is possible: here's a Webpack CommonJS Tree Shaking package.
What are some alternatives?
webpack - A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.
proposal-upsert - ECMAScript Proposal, specs, and reference implementation for Map.prototype.upsert
bun - Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
meta - Meta discussions and unicorns. Not necessarily in that order.
esm - Tomorrow's ECMAScript modules today!
loader - A universal async JS loader.
proposal-do-expressions - Proposal for `do` expressions
node-fetch - A light-weight module that brings the Fetch API to Node.js
node - Node.js JavaScript runtime ✨🐢🚀✨
wtfjs - 🤪 A list of funny and tricky JavaScript examples
proposal-record-tuple - ECMAScript proposal for the Record and Tuple value types. | Stage 2: it will change!