babel-plugin-danger-remove-unused-import
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -38,3 +38,3 @@ 'use strict'; | ||
if (parentPath.isJSXOpeningElement() && parentPath.get('name') === path) { | ||
if (parentPath.isJSXOpeningElement() && parentPath.get('name') === path || parentPath.isJSXMemberExpression() && parentPath.get('object') === path) { | ||
if (runtimeData[name]) { | ||
@@ -41,0 +41,0 @@ delete runtimeData[name]; |
{ | ||
"name": "babel-plugin-danger-remove-unused-import", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "", | ||
@@ -10,3 +10,3 @@ "main": "index.js", | ||
"babel": "babel src --out-dir lib -D", | ||
"dev": "babel src --out-dir lib -Dw", | ||
"dev": "npm run babel -- -w", | ||
"prepublish": "npm run clean; npm run babel" | ||
@@ -13,0 +13,0 @@ }, |
@@ -44,2 +44,10 @@ # babel-plugin-danger-remove-unused-import | ||
a.moment = <Button x={data} /> | ||
``` | ||
``` | ||
## ChangeLog | ||
- 1.0.9 | ||
Fix `<Comp.A/>` Bug | ||
## Todo | ||
1. Supporting Scope |
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
10666
52