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.6 to 0.0.7

8

History.md
v0.0.7 / 2016-01-05
===================
* v0.0.7
* infer app root from babelOpts.filename
* bump version
* changelog
v0.0.6 / 2016-01-05

@@ -3,0 +11,0 @@ ===================

4

lib/ResolverPlugin.js

@@ -8,4 +8,2 @@ var resolve = require('path').resolve;

module.exports = function ResolverPlugin() {
var nodeModulesPaths = findNodeModulesPaths(__dirname);
var appRootPath = resolve(nodeModulesPaths[0], '..');
var resolver;

@@ -16,2 +14,4 @@ return {

var pluginOpts = getPluginOptsFromBabelOpts(babelOpts);
var nodeModulesPaths = findNodeModulesPaths(babelOpts.filename);
var appRootPath = resolve(nodeModulesPaths[0], '..');
var absoluteDirs = getAbsoluteDirsFromInputDirs(pluginOpts.resolveDirs, appRootPath);

@@ -18,0 +18,0 @@ resolver = createBabelResolver.apply(null, absoluteDirs);

{
"name": "babel-plugin-resolver",
"version": "0.0.6",
"version": "0.0.7",
"description": "Resolve modules from any directory.",

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

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