Software Alternatives & Reviews

Why is node_modules heavier than the universe? (No seriously, why is it so big?)

Webpack Node.js
  1. Webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable of transforming, bundling, or packaging just about any resource or asset.
    Pricing:
    • Open Source
    But what is the output of a JS project? Its usually a single JS file called bundle.js or index.js, which contains the entire JS source code of the project in a highly condensed, minified manner. This is usually achieved using tools like Webpack.

    #Web Application Bundler #JS Build Tools #Module Bundler 220 social mentions

  2. Node.js is a platform built on Chrome's JavaScript runtime for easily building fast, scalable network applications
    Now, to execute the JS in this minimized bundle file, we use a JS Engine like the V8 Engine which is found in Chromium and Node.js, and it executes the JS in a compilation technique called Just-In-Time (JIT) Compilation.

    #Runtime #JavaScript Runtime #JavaScript 788 social mentions

Discuss: Why is node_modules heavier than the universe? (No seriously, why is it so big?)

Log in or Post with