# umijs/babel-plugin-import

Modularly import plugin for babel.

Repository: https://github.com/umijs/babel-plugin-import
Canonical: https://ross.abutalabs.com/products/babel-plugin-import
Language: JavaScript
License Family: other
Last push: 2024-04-24T12:41:03+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3940, "days_push": 861, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3147, forks 393 (observed 2026-08-28T04:07:46.034074+00:00)

## What it is
A Babel plugin that transforms named imports from libraries like antd, lodash, and material-ui into modular per-component imports, enabling on-demand loading and smaller bundles. It can also inject corresponding style imports automatically.

## Use cases
- reduce bundle size by importing only used antd components
- automatically import component styles with babel
- convert named imports to modular requires for lodash
- on-demand loading for material-ui components
- configure modular import paths for any library

## When to choose
- you use antd, antd-mobile, lodash, or material-ui with Babel and want smaller bundles
- you need automatic style injection alongside modular imports

## When to avoid
- your bundler already supports tree-shaking of ES modules
- you use modern build tools with built-in import optimization
- you need Babel 7+ multi-library config in a single plugin entry

## Facets
- artifact type: plugin
- maturity: maintenance
- function: build-tool, developer-tools
- domain: frontend, web-development, developer-tools
- platform: -
- tags: babel-plugin, tree-shaking, modular-import, antd, on-demand-import, nodejs, javascript

## Member repositories
- umijs/babel-plugin-import (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:46.034074+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:25:56.835369+00:00, confidence not recorded.
  - readme: https://github.com/umijs/babel-plugin-import (fetched 2026-08-28T04:07:46.034074+00:00, sha aad8d893e402)
- Data as of 2026-08-30T08:39:29.467469+00:00.
