Skip to content

Commit

Permalink
Fixing issue with react not trigger module transform
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Gensler committed Nov 6, 2017
1 parent d634c39 commit efe3805
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Expand Up @@ -24,7 +24,7 @@ let ignoreRegex;
export default ({ types: t }) => ({
visitor: {
Program: {
exit({ scope, node }) {
enter({ scope, node }) {
if (!scope.hasBinding('React')) {
const reactImportDeclaration = t.importDeclaration([
t.importDefaultSpecifier(t.identifier('React')),
Expand Down

0 comments on commit efe3805

Please sign in to comment.