babel-plugin-module-resolver weekly downloads statistics
By tleunen (2 listings) · npm · Babel plugins
Module resolver plugin for Babel
babel-plugin-module-resolver has 1,929,397 recorded weekly downloads on npm, a decrease of 50.1% over the past 30 days.
It ranks #158 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -50.7%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About babel-plugin-module-resolver
babel-plugin-module-resolver
[![Maintenance Status][status-image]][status-url] [![NPM version][npm-image]][npm-url] [![Build Status Linux][circleci-image]][circleci-url] [![Build Status Windows][appveyor-image]][appveyor-url] [![Coverage Status][coverage-image]][coverage-url]
A Babel plugin to add a new resolver for your modules when compiling your code using Babel. This plugin allows you to add new "root" directories that contain your modules. It also allows you to setup a custom alias for directories, specific files, or even other npm modules.
Description
This plugin can simplify the require/import paths in your project. For example, instead of using complex relative paths like ../../../../utils/my-utils, you can write utils/my-utils. It will allow you to work faster since you won't need to calculate how many levels of directory you have to go up before accessing the file.
Getting started
Install the plugin
or
Specify the plugin in your .babelrc with the custom root or alias. Here's an example:
.babelrc.js version Specify the plugin in your .babelrc.js file with the custom root or alias. Here's an example:
Good example: // https://gist.github.com/nodkz/41e189ff22325a27fe6a5ca81df2cb91
Documentation
babel-plugin-module-resolver can be configured and controlled easily, check the documentation for more details
Are you a plugin author (e.g. IDE integration)? We have documented the exposed functions for use in your plugins!
ESLint plugin
If you're using ESLint, you should use [eslint-plugin-import][eslint-plugin-import], and [eslint-import-resolver-babel-module][eslint-import-resolver-babel-module] to remove falsy unresolved modules. If you want to have warnings when aliased modules are being imported by their relative paths, you can use eslint-plugin-module-resolver.
Editors autocompletion
• Atom: Uses [atom-autocomplete-modules][atom-autocomplete-modules] and enable the babel-plugin-module-resolver option. • VS Code: Configure the path mapping in jsconfig.json (tsconfig.json for TypeScript), e.g.: • IntelliJ/WebStorm: You can mark your module directories as "resources root" e.g if you have ../../../utils/MyUtilFn you can mark ../../../utils as "resources root". This has the problem that your alias also has to be named utils. The second option is to add a webpack.config.js to your project and use it under File->Settings->Languages&Frameworks->JavaScript->Webpack. This will trick webstorm into resolving the paths and you can use any alias you want e.g.:
License
MIT, see LICENSE.md for details.
Who is using babel-plugin-module-resolver ?
• Algolia: InstantSearch.js • Airbnb: Lottie React Native • AppDirect • Callstack: React Native Paper • Codility • Eleme: Element • Expo: Expo SDK • FormidableLabs: Victory Native • OpenCollective: OpenCollective • React Community: React Native Maps • Uber: Seer, react-vis • Quasar Framework: Quasar • Vuetify.js Vuetify • Zeit: Next.js • Zenika: Immutadot
Are you also using it? Send a PR!
Description from the npm listing.
- babel
- babel-plugin
- module
- resolver
- alias
- rewrite
- resolve
- rename
- mapping
- require
- import
Where babel-plugin-module-resolver sits in the listing
Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Recent observations
Full history (121)Similar npm Babel plugins plugins
Data source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/babel-plugin-module-resolver. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.