babel-plugin-resolver
Advanced tools
Comparing version 0.0.6 to 0.0.7
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 @@ =================== |
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9139