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

babel-plugin-resolver

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-resolver - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

lib/ResolverPlugin.js

10

History.md
v0.0.5 / 2016-01-05
==================
* v0.0.5
* rename main to ResolverPlugin
* Merge pull request #1 from iuriikozuliak/patch-1
* Update getPluginOptsFromBabelOpts.js
* tweak copy
* v0.0.4
v0.0.4 / 2015-11-21

@@ -3,0 +13,0 @@ ===================

2

lib/getPluginOptsFromBabelOpts.js

@@ -7,3 +7,3 @@ var _ = require('lodash');

module.exports = function getPluginOptsFromBabelOpts(babelOpts) {
var plugin = _.findWhere(babelOpts.plugins, function (plugin) {
var plugin = _.find(babelOpts.plugins, function (plugin) {
// hack: assume it's the correct plugin if it's options have a `resolveDirs` property

@@ -10,0 +10,0 @@ return _.isArray(plugin) &&

{
"name": "babel-plugin-resolver",
"version": "0.0.4",
"version": "0.0.5",
"description": "Resolve modules from any directory.",
"main": "lib/index.js",
"main": "lib/ResolverPlugin.js",
"scripts": {

@@ -7,0 +7,0 @@ "test": "npm run clear-cache && npm run lint && node_modules/.bin/mocha test/**/*.test.js",

@@ -99,5 +99,3 @@ # Babel Resolver Plugin [![NPM version][npm-image]][npm-url] [![Build status][travis-image]][travis-url]

While setting `NODE_PATH=app` is a perfectly valid solution, `babel-plugin-resolver` is for those who:
- find environment variables annoying
- want to resolve modules from more than one directory
While setting `NODE_PATH=app` is a perfectly valid solution, `babel-resolver` is more explicit and lets you avoid mucking around with environment variables.

@@ -104,0 +102,0 @@ ## License

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