Skip to content

Commit

Permalink
Use correct babel transform for dynamic import in dependencies (faceb…
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesknelson authored and jadurani committed Jun 15, 2019
1 parent fd69722 commit d0125ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-preset-react-app/dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ module.exports = function(api, opts) {
require('@babel/plugin-syntax-dynamic-import').default,
isEnvTest &&
// Transform dynamic import to require
require('babel-plugin-transform-dynamic-import').default,
require('babel-plugin-dynamic-import-node'),
].filter(Boolean),
};
};

0 comments on commit d0125ed

Please sign in to comment.