babel-plugin-import
Advanced tools
Comparing version 1.6.6 to 1.6.7
@@ -34,3 +34,3 @@ "use strict"; | ||
if (_plugin[method]) { | ||
_plugin[method].apply(_plugin, _toConsumableArray(args).concat([context])); | ||
_plugin[method].apply(_plugin, [].concat(_toConsumableArray(args), [context])); | ||
} | ||
@@ -85,3 +85,3 @@ } | ||
}; | ||
var methods = ['ImportDeclaration', 'CallExpression', 'MemberExpression', 'Property', 'VariableDeclarator', 'LogicalExpression', 'ConditionalExpression', 'IfStatement', 'ExpressionStatement', 'ReturnStatement', 'ExportDefaultDeclaration', 'BinaryExpression', 'NewExpression']; | ||
var methods = ['ImportDeclaration', 'CallExpression', 'MemberExpression', 'Property', 'VariableDeclarator', 'ArrayExpression', 'LogicalExpression', 'ConditionalExpression', 'IfStatement', 'ExpressionStatement', 'ReturnStatement', 'ExportDefaultDeclaration', 'BinaryExpression', 'NewExpression']; | ||
var ret = { | ||
@@ -88,0 +88,0 @@ visitor: { |
@@ -198,2 +198,11 @@ "use strict"; | ||
}, { | ||
key: "ArrayExpression", | ||
value: function ArrayExpression(path, state) { | ||
var node = path.node; | ||
var props = node.elements.map(function (_, index) { | ||
return index; | ||
}); | ||
this.buildExpressionHandler(node.elements, props, path, state); | ||
} | ||
}, { | ||
key: "LogicalExpression", | ||
@@ -200,0 +209,0 @@ value: function LogicalExpression(path, state) { |
{ | ||
"name": "babel-plugin-import", | ||
"version": "1.6.6", | ||
"version": "1.6.7", | ||
"description": "Component modular import plugin for babel.", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
17801
324