Skip to content

Commit f022c45

Browse files
committed
[Fix] ensure that a React import is only added once
1 parent f380c66 commit f022c45

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: src/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export default ({ types: t }) => ({
111111
path.replaceWith(svgReplacement);
112112
}
113113
file.get('ensureReact')();
114+
file.set('ensureReact', () => {});
114115
}
115116
},
116117
},

0 commit comments

Comments
 (0)