Software Alternatives & Reviews

Everything You Need to Know About JavaScript Import Maps

Webpack unpkg ES6
  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
    This was slightly different from how modules worked in other common module systems, such as CommonJS, and when using a module bundler like webpack, where a simpler syntax was used:.

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

  2. 2
    The CDN for everything on npm
    Pricing:
    • Open Source
    As I've demonstrated throughout this article, production-ready versions of any NPM package that use ES Modules can be utilized in your import maps through CDNs like ESM, Unpkg, and Skypack. Even if the package on NPM wasn't designed for the ES Modules system and native browser import behavior, services like Skypack and ESM can transform them to be ready to use in an import map. You can use the search bar on Skypack's homepage to find browser-optimized NPM packages that can be used right away without fiddling with a build step.

    #CDN #Cloud Computing #Image Optimisation 26 social mentions

  3. 3

    ES6

    The next version of JavaScript
    When ES modules was first introduced in ECMAScript 2015 as a way to standardize module systems in JavaScript, it was implemented by mandating the specification of a relative or absolute path in import statements.

    #Programming Language #OOP #Generic Programming Language 14 social mentions

Discuss: Everything You Need to Know About JavaScript Import Maps

Log in or Post with