Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-resolver

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-resolver - npm Package Compare versions

Comparing version 0.0.14 to 0.0.15

9

History.md
v0.0.15 / 2015-11-13
====================
* bump version
* add link to plugin version
* readme language
* italics
* v0.0.14
v0.0.14 / 2015-11-11

@@ -3,0 +12,0 @@ ====================

2

package.json
{
"name": "babel-resolver",
"version": "0.0.14",
"version": "0.0.15",
"description": "Resolve modules from any directory.",

@@ -5,0 +5,0 @@ "main": "lib/createBabelResolver.js",

# Babel Resolver [![NPM version][npm-image]][npm-url] [![Build status][travis-image]][travis-url] [![Coverage status][coveralls-image]][coveralls-url]
*To configure this using .babelrc, use the [Babel Resolver Plugin](https://github.com/jshanson7/babel-plugin-resolver)*
Resolve modules from any directory.

@@ -38,3 +40,3 @@

**Note2:** Babel's `resolveModuleSource` is currently only called when you use `import 'module'`, not when use `require('module')`
**Note2:** Babel's `resolveModuleSource` is only called when you use `import`, not `require`.

@@ -46,3 +48,3 @@ Also, keep in mind that you must provide absolute directory paths to `babel-resolver`.

In app/index.js:
*In app/index.js:*

@@ -53,7 +55,6 @@ ```javascript

var anotherDirToCheck = path.resolve(__dirname, 'lib');
var resolver = require('babel-resolver')(localModulesDir, anotherDirToCheck);
require('babel-core/register')({
presets: ['es2015'],
resolveModuleSource: resolver
resolveModuleSource: require('babel-resolver')(localModulesDir, anotherDirToCheck)
});

@@ -63,3 +64,3 @@ require('./app');

In app/app.js:
*In app/app.js:*

@@ -83,3 +84,3 @@ ```javascript

Setting `NODE_PATH=app` is a perfectly valid solution. `babel-resolver` is for those who:
While setting `NODE_PATH=app` is a perfectly valid solution, `babel-resolver` is for those who:
- find environment variables annoying

@@ -86,0 +87,0 @@ - want to resolve modules from more than one directory

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc