@svgr/babel-plugin-transform-react-native-svg
Advanced tools
Comparing version 8.0.0 to 8.1.0
@@ -65,3 +65,3 @@ 'use strict'; | ||
ImportDeclaration(path, state) { | ||
if (path.get("source").isStringLiteral({ value: "react-native-svg" })) { | ||
if (path.get("source").isStringLiteral({ value: "react-native-svg" }) && !path.get("importKind").hasNode()) { | ||
state.replacedComponents.forEach((component) => { | ||
@@ -68,0 +68,0 @@ if (path.get("specifiers").some( |
{ | ||
"name": "@svgr/babel-plugin-transform-react-native-svg", | ||
"description": "Transform DOM elements into react-native-svg components", | ||
"version": "8.0.0", | ||
"version": "8.1.0", | ||
"main": "./dist/index.js", | ||
@@ -39,3 +39,3 @@ "types": "./dist/index.d.ts", | ||
}, | ||
"gitHead": "52a1079681477587ef0d842c0e78531adf2d2520" | ||
"gitHead": "772592e042be5063e782bfb8711d024b2fefc6b8" | ||
} |
Sorry, the diff of this file is not supported yet
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
13196