babel-resolver
Advanced tools
Comparing version 0.0.18 to 1.0.0
@@ -6,3 +6,3 @@ var path = require('path'); | ||
require('babel-core/register')({ | ||
require('babel-register')({ | ||
presets: ['es2015'], | ||
@@ -9,0 +9,0 @@ resolveModuleSource: resolver |
v1.0.0 / 2016-08-20 | ||
=================== | ||
* use babel-register instead of babel-core/register | ||
* Merge pull request #5 from brandonbloom/patch-1 | ||
* Resolve Unix-style path separators on Windows. | ||
v0.0.18 / 2016-01-05 | ||
@@ -3,0 +10,0 @@ ==================== |
@@ -6,2 +6,3 @@ var resolve = require('path').resolve; | ||
module.exports = function findNodeModulesPaths(baseDir) { | ||
baseDir = resolve(baseDir); | ||
var dirsToCheck = baseDir.split(separator); | ||
@@ -8,0 +9,0 @@ var nodeModulesPaths = []; |
{ | ||
"name": "babel-resolver", | ||
"version": "0.0.18", | ||
"version": "1.0.0", | ||
"description": "Resolve modules from any directory.", | ||
@@ -34,5 +34,5 @@ "main": "lib/createBabelResolver.js", | ||
"devDependencies": { | ||
"babel-core": "^6.1.4", | ||
"babel-eslint": "^4.1.5", | ||
"babel-preset-es2015": "^6.1.4", | ||
"babel-eslint": "^6.1.2", | ||
"babel-preset-es2015": "^6.13.2", | ||
"babel-register": "^6.11.6", | ||
"coveralls": "^2.11.4", | ||
@@ -39,0 +39,0 @@ "eslint": "^1.9.0", |
@@ -19,3 +19,3 @@ # Babel Resolver [![NPM version][npm-image]][npm-url] [![Build status][travis-image]][travis-url] [![Coverage status][coveralls-image]][coveralls-url] | ||
```javascript | ||
require('babel-core/register')({ | ||
require('babel-register')({ | ||
presets: ['es2015'], // required for 'import' | ||
@@ -35,3 +35,3 @@ resolveModuleSource: require('babel-resolver')(__dirname) | ||
This example uses [Babel 6](http://babeljs.io/) and [`babel-core/register`](http://babeljs.io/docs/usage/require/). | ||
This example uses [Babel 6](http://babeljs.io/) and [`babel-register`](http://babeljs.io/docs/usage/require/). | ||
@@ -56,3 +56,3 @@ If you wish to define options in .babelrc, use the [Babel Resolver Plugin](https://github.com/jshanson7/babel-plugin-resolver) instead. | ||
require('babel-core/register')({ | ||
require('babel-register')({ | ||
presets: ['es2015'], | ||
@@ -59,0 +59,0 @@ resolveModuleSource: require('babel-resolver')(localModulesDir, anotherDirToCheck) |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
14503
215
0