babel-resolver
Advanced tools
Comparing version 0.0.4 to 0.0.6
{ | ||
"name": "babel-resolver", | ||
"version": "0.0.4", | ||
"version": "0.0.6", | ||
"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] | ||
Resolve imported modules from any directory. | ||
Resolve modules from any directory. | ||
@@ -25,3 +25,3 @@ ```javascript | ||
require('babel-core/register')({ | ||
presets: ['es2015'], | ||
presets: ['es2015'], // required for 'import' | ||
resolveModuleSource: resolver | ||
@@ -44,13 +44,8 @@ }); | ||
## Why not just set `NODE_PATH=app`? | ||
## Why not just set NODE_PATH? | ||
Setting `NODE_PATH` is a perfectly valid solution. `babel-node` is for those who: | ||
Setting `NODE_PATH=app` is a perfectly valid solution. `babel-resolver` is for those who: | ||
- find environment variables annoying | ||
- want to resolve modules from more than one directory | ||
``` | ||
npm i babel-resolver --save | ||
rm -rf ~/.babel.json | ||
``` | ||
## License | ||
@@ -65,2 +60,2 @@ | ||
[coveralls-image]: https://coveralls.io/repos/jshanson7/babel-resolver/badge.svg?branch=master&service=github | ||
[coveralls-url]: https://coveralls.io/github/jshanson7/babel-resolver?branch=master | ||
[coveralls-url]: https://coveralls.io/github/jshanson7/babel-resolver?branch=master |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
10465
59