babel-plugin-filter-imports
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -30,2 +30,6 @@ 'use strict'; | ||
if (t.isArrowFunctionExpression(parent)) { | ||
parent.get('body').remove(); | ||
return; | ||
} | ||
if (t.isVariableDeclarator(parent)) removeReferences(parent, _lodash2.default.get(parent, 'node.id.name')); | ||
@@ -32,0 +36,0 @@ parent.remove(); |
{ | ||
"name": "babel-plugin-filter-imports", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "A babel transform for filtering out imports", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -12,2 +12,6 @@ import * as t from 'babel-types' | ||
if (t.isArrowFunctionExpression(parent)) { | ||
parent.get('body').remove() | ||
return | ||
} | ||
if (t.isVariableDeclarator(parent)) removeReferences(parent, _.get(parent, 'node.id.name')) | ||
@@ -14,0 +18,0 @@ parent.remove() |
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
14390
167