Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on Feb 26, 2024 via pnpm

babel-plugin-module-resolver 4.1.0

Module resolver plugin for Babel
Package summary
Share
1
issue
1
high severity
vulnerability
1
2
licenses
21
MIT
7
ISC
Package created
14 Aug 2016
Version published
15 Dec 2020
Maintainers
2
Total deps
28
Direct deps
5
License
MIT

Issues

1

1 high severity issue

high
Recommendation: Upgrade to version 1.0.2 or later
via: find-babel-config@1.2.0
Collapse
Expand

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
21 Packages, Including:
babel-plugin-module-resolver@4.1.0
balanced-match@1.0.2
brace-expansion@1.1.11
concat-map@0.0.1
find-babel-config@1.2.0
find-up@3.0.0
function-bind@1.1.2
hasown@2.0.1
is-core-module@2.13.1
json5@0.5.1
locate-path@3.0.0
p-limit@2.3.0
p-locate@3.0.0
p-try@2.2.0
path-exists@3.0.0
path-is-absolute@1.0.1
path-parse@1.0.7
pkg-up@3.1.0
reselect@4.1.8
resolve@1.22.8
supports-preserve-symlinks-flag@1.0.0

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
7 Packages, Including:
fs.realpath@1.0.0
glob@7.2.3
inflight@1.0.6
inherits@2.0.4
minimatch@3.1.2
once@1.4.0
wrappy@1.0.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

5
All Dependencies CSV
β“˜ This is a list of babel-plugin-module-resolver 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
find-babel-config1.2.04.13 kBMIT
prod
1
glob7.2.315.08 kBISC
prod
pkg-up3.1.01.97 kBMIT
prod
reselect4.1.828.75 kBMIT
prod
resolve1.22.826.69 kBMIT
prod

Visualizations

Frequently Asked Questions

What does babel-plugin-module-resolver do?

Babel-Plugin-Module-Resolver is a Babel plugin that allows you to add new "root" directories containing your modules and set up a custom alias for directories, specific files, or other npm modules. This function is particularly useful in simplifying the import/require paths in your code, letting you write utils/my-utils instead of ../../../../utils/my-utils, hence speeding up your workflows and eliminating the need to compute how many directory levels to traverse up before accessing a file.

How do you use babel-plugin-module-resolver?

Utilizing Babel-Plugin-Module-Resolver is straightforward. First, install the plugin by running npm install --save-dev babel-plugin-module-resolver or yarn add --dev babel-plugin-module-resolver. Subsequently, define the plugin in your .babelrc with custom root or alias. Below is a usage example:

{
  "plugins": [
    ["module-resolver", {
      "root": ["./src"],
      "alias": {
        "test": "./test",
        "underscore": "lodash"
      }
    }]
  ]
}

In case you're using a .babelrc.js, specify the plugin like this:

const plugins = [
  [
    require.resolve('babel-plugin-module-resolver'),
    {
      root: ["./src/"],
      alias: {
        "test": "./test"
      }
    }
  ]
];

Where are the babel-plugin-module-resolver docs?

You can find the detailed documentation for Babel-Plugin-Module-Resolver at DOCS.md. Here, you'll find comprehensive information about the plugin, including how to configure and control it. In addition, if you're a plugin author, you'll find the documented exposed functions quite useful. This ensures you've got all the information necessary to get the most out of Babel-Plugin-Module-Resolver.