Skip to content

Commit

Permalink
Use correct babel transform for dynamic import in dependencies (#7208)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesknelson authored and iansu committed Jun 13, 2019
1 parent 56d1de2 commit f522a0d
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 f522a0d

Please sign in to comment.