Skip to content

Commit

Permalink
[Fix] ensure that a React import is only added once
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Apr 28, 2018
1 parent f380c66 commit f022c45
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Expand Up @@ -111,6 +111,7 @@ export default ({ types: t }) => ({
path.replaceWith(svgReplacement);
}
file.get('ensureReact')();
file.set('ensureReact', () => {});
}
},
},
Expand Down

0 comments on commit f022c45

Please sign in to comment.