webpack-common-shake VS loader

Compare webpack-common-shake vs loader and see what are their differences.

Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
webpack-common-shake loader
2 1
914 0
- -
0.0 7.9
about 1 year ago 8 months ago
JavaScript TypeScript
- -
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

webpack-common-shake

Posts with mentions or reviews of webpack-common-shake. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-30.
  • CommonJS Is Hurting JavaScript
    7 projects | news.ycombinator.com | 30 Jun 2023
    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?
    5 projects | /r/javascript | 15 Sep 2022
    Tree shaking in CommonJS is possible: here's a Webpack CommonJS Tree Shaking package.

loader

Posts with mentions or reviews of loader. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-30.
  • CommonJS Is Hurting JavaScript
    7 projects | news.ycombinator.com | 30 Jun 2023
    Your first point is absolutely spot-on but I am curious as to how much treeshaking was on the minds of masses at the time. The tooling of that era didn't really have any good support for tree shaking even for non-AMD includes and it was quite experimental tech (as in, I don't think it was a decision making factor for the majority of the tools on the scene).

    The second point actually isn't strictly valid. I've written my own "all-in-one" async custom loader [0] that can require() CommonJS/AMD includes or regular "add a script tag" includes w/out any exports, all asynchronously, with asynchronous dependency trees for each async dependency in turn. You can define in the HTML source code a "source map" that maps each dependency name to a specific URL, so that you don't need knowledge of the filesystem tree to load dependencies.

    Ideally, this source map can be generated via the tooling you use to compile the code (e.g. `tsc` is aware of the path to each dependency) but I haven't written my own tool to generate the require path to url map.

    [0]: https://github.com/mqudsi/loader

What are some alternatives?

When comparing webpack-common-shake and loader you can also consider the following projects:

proposal-upsert - ECMAScript Proposal, specs, and reference implementation for Map.prototype.upsert

meta - Meta discussions and unicorns. Not necessarily in that order.

esm - Tomorrow's ECMAScript modules today!

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!