babel-plugin-fake-import-specifiers
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "babel-plugin-fake-import-specifiers", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Allow importing pieces while only exporting the whole object", | ||
"main": "src/index.js", | ||
"scripts": { | ||
"test": "mocha" | ||
"test": "eslint-mocha --eslint-args=\"src/**/*.js test/*.js\"" | ||
}, | ||
@@ -25,6 +25,8 @@ "repository": { | ||
"chai": "^3.0.0", | ||
"eslint": "^3.0.0", | ||
"eslint-mocha": "0.1.0", | ||
"mocha": "^3.0.0" | ||
}, | ||
"engines": { | ||
"node": ">= 0.12.0" | ||
"node": ">= 4" | ||
}, | ||
@@ -31,0 +33,0 @@ "greenkeeper": { |
@@ -9,1 +9,7 @@ # babel-plugin-fake-import-specifiers | ||
Allow importing pieces while only exporting the whole object | ||
## Tests | ||
To test a single fixture folder, prefix the folder name with an underscore. | ||
"test/fixtures/rewrite-import" => "test/fixtures/_rewrite-import" |
@@ -23,3 +23,3 @@ 'use strict'; | ||
var visitor = { | ||
ImportDeclaration: function(node, parent, scope, file) { | ||
ImportDeclaration: function(node, parent, scope) { | ||
var value = node.source.value; | ||
@@ -101,3 +101,3 @@ var sourceMinusOne; | ||
}, | ||
CallExpression: function(node, parent, scope, file) { | ||
CallExpression: function(node) { | ||
var callee = node.callee; | ||
@@ -131,3 +131,3 @@ if (callee.type !== 'Identifier') { | ||
sourcesToFake = file.opts.extra['fake-import-specifiers'] || []; | ||
defaultSpecifierLookup = {}; | ||
defaultSpecifierLookup = Object.create(null); | ||
newIdentifierLookup = {}; | ||
@@ -134,0 +134,0 @@ } |
Sorry, the diff of this file is not supported yet
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
6589
15
5