Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 15, 2024 via pnpm

babel-plugin-module-resolver 5.0.0

Module resolver plugin for Babel
Package summary
Share
0
issues
2
licenses
20
MIT
7
ISC
Package created
14 Aug 2016
Version published
9 Jan 2023
Maintainers
2
Total deps
27
Direct deps
5
License
MIT

Issues

0
This package has no issues

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
20 Packages, Including:
babel-plugin-module-resolver@5.0.0
balanced-match@1.0.2
brace-expansion@2.0.1
find-babel-config@2.1.1
find-up@3.0.0
function-bind@1.1.2
hasown@2.0.2
is-core-module@2.13.1
json5@2.2.3
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-exists@4.0.0
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@8.1.0
inflight@1.0.6
inherits@2.0.4
minimatch@5.1.6
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-config2.1.120.15 kBMIT
prod
glob8.1.015.35 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.