babel-plugin-transform-remove-imports
Advanced tools
Comparing version 1.0.4 to 1.0.5
@@ -11,3 +11,3 @@ "use strict"; | ||
return { | ||
name: "transform-react-remove-css", | ||
name: "transform-remove-imports", | ||
visitor: { | ||
@@ -19,3 +19,3 @@ // https://babeljs.io/docs/en/babel-types#importdeclaration | ||
if (state.opts.test.test(path.node.source.value)) { | ||
if (new RegExp(state.opts.test).test(path.node.source.value)) { | ||
path.remove(); | ||
@@ -22,0 +22,0 @@ } |
{ | ||
"name": "babel-plugin-transform-remove-imports", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Remove the specified import declaration when you use the babel transform to build the package.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/jaywcjlove/babel-plugin-transform-remove-imports", |
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
5609