Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-resolver

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-resolver - npm Package Compare versions

Comparing version 0.0.18 to 1.0.0

2

example-app/index.js

@@ -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)

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