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.12 to 0.0.13

11

History.md
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 @@ ====================

2

package.json
{
"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 @@

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