babel-resolver
Advanced tools
Comparing version 0.0.12 to 0.0.13
v0.0.13 / 2015-11-11 | ||
==================== | ||
* bump version | ||
* simplify docs | ||
v0.0.12 / 2015-11-11 | ||
==================== | ||
* document multi-directory | ||
v0.0.11 / 2015-11-11 | ||
@@ -3,0 +14,0 @@ ==================== |
{ | ||
"name": "babel-resolver", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"description": "Resolve modules from any directory.", | ||
@@ -5,0 +5,0 @@ "main": "lib/createBabelResolver.js", |
@@ -16,3 +16,3 @@ # Babel Resolver [![NPM version][npm-image]][npm-url] [![Build status][travis-image]][travis-url] [![Coverage status][coveralls-image]][coveralls-url] | ||
Using [Babel 6](http://babeljs.io/) & [`babel-core/register`](http://babeljs.io/docs/usage/require/): | ||
Example using [Babel 6](http://babeljs.io/) and [`babel-core/register`](http://babeljs.io/docs/usage/require/). | ||
@@ -22,8 +22,5 @@ In app/index.js: | ||
```javascript | ||
var localModulesDir = __dirname; | ||
var resolver = require('babel-resolver')(localModulesDir); | ||
require('babel-core/register')({ | ||
presets: ['es2015'], // required for 'import' | ||
resolveModuleSource: resolver | ||
resolveModuleSource: require('babel-resolver')(__dirname) | ||
}); | ||
@@ -30,0 +27,0 @@ |
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
13108
92