PHPackages                             ubermanu/magento2-es-import-map - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ubermanu/magento2-es-import-map

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

ubermanu/magento2-es-import-map
===============================

Auto generated import-map for ES modules

v3.0.0(3y ago)09MITJavaScript

Since Mar 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/ubermanu/magento2-es-import-map)[ Packagist](https://packagist.org/packages/ubermanu/magento2-es-import-map)[ RSS](/packages/ubermanu-magento2-es-import-map/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (6)Used By (0)

Magento 2 - Import map for ES modules
=====================================

[](#magento-2---import-map-for-es-modules)

This module generates an import-map script tag to be used with JS modules.
Cross browser support is provided by .

Install
-------

[](#install)

```
composer require ubermanu/magento2-es-import-map

```

Example
-------

[](#example)

Create a `example.mjs` file into your module `view/frontend/web/mjs` folder:

```
// app/code/Vendor/Module/view/frontend/web/mjs/example.mjs
export const something = 'Hello world';
```

Add the following to any `*.phtml` template file:

```

  import { something } from '/Vendor_Module/mjs/example.mjs';
  alert(something);

```

Named imports
-------------

[](#named-imports)

To use named imports, create an `import-map.json` file into the view dir of your module (or theme):

```
// app/code/Vendor/Module/view/frontend/import-map.json
{
    "imports": {
        "jquery": "https://cdn.skypack.dev/jquery"
    }
}
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~143 days

Total

5

Last Release

1304d ago

Major Versions

v1.0.0 → v2.0.02021-11-19

v2.2.0 → v3.0.02022-10-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/bee3b2a3771b96f38ee3e2cb0f6720bd6c38ebc232bebadff61a8b4891d45f32?d=identicon)[ubermanu](/maintainers/ubermanu)

---

Top Contributors

[![ubermanu](https://avatars.githubusercontent.com/u/1533514?v=4)](https://github.com/ubermanu "ubermanu (24 commits)")

### Embed Badge

![Health badge](/badges/ubermanu-magento2-es-import-map/health.svg)

```
[![Health](https://phpackages.com/badges/ubermanu-magento2-es-import-map/health.svg)](https://phpackages.com/packages/ubermanu-magento2-es-import-map)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
