babel-plugin-import
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -86,2 +86,3 @@ 'use strict'; | ||
ret.visitor[method] = function () { | ||
// eslint-disable-line | ||
applyInstance(method, arguments, ret.visitor); // eslint-disable-line | ||
@@ -88,0 +89,0 @@ }; |
@@ -75,3 +75,3 @@ 'use strict'; | ||
if (_this.specified[node[prop].name]) { | ||
node[prop] = _this.importMethod(node[prop].name, file); // eslint-disable-line | ||
node[prop] = _this.importMethod(_this.specified[node[prop].name], file); // eslint-disable-line | ||
} | ||
@@ -87,3 +87,3 @@ }); | ||
if (!types.isIdentifier(node[prop])) return; | ||
if (this.specified[node[prop].name]) { | ||
if (this.specified[node[prop].name] && path.scope.hasBinding(node[prop].name) && path.scope.getBinding(node[prop].name).path.type === 'ImportSpecifier') { | ||
node[prop] = this.importMethod(node[prop].name, file); // eslint-disable-line | ||
@@ -90,0 +90,0 @@ } |
{ | ||
"name": "babel-plugin-import", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Component modular import plugin for babel.", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/ant-design/babel-plugin-import" | ||
}, | ||
"main": "lib/index.js", | ||
@@ -6,0 +10,0 @@ "scripts": { |
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 repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
15537
306
0