We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
gregberge
Learn more about funding links in repositories.
Report abuse
1 parent 82928f0 commit e612b6aCopy full SHA for e612b6a
packages/babel-plugin-transform-react-native-svg/src/index.ts
@@ -79,7 +79,10 @@ const plugin = () => {
79
80
const importDeclarationVisitor = {
81
ImportDeclaration(path: NodePath<t.ImportDeclaration>, state: State) {
82
- if (path.get('source').isStringLiteral({ value: 'react-native-svg' })) {
+ if (
83
+ path.get('source').isStringLiteral({ value: 'react-native-svg' }) &&
84
+ !path.get('importKind').hasNode()
85
+ ) {
86
state.replacedComponents.forEach((component) => {
87
if (
88
path
Successfully deployed to the following URLs:
svgr-git-main-gregberge.vercel.app svgr-gregberge.vercel.app api.react-svgr.com
1 commit comments
vercel[bot] commentedon Aug 15, 2023
Successfully deployed to the following URLs:
svgr – ./
svgr-git-main-gregberge.vercel.app
svgr-gregberge.vercel.app
api.react-svgr.com