mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-24 05:05:53 +08:00
Use correct babel transform for dynamic import in dependencies (#7208)
This commit is contained in:
committed by
Ian Sutherland
parent
56d1de2745
commit
f522a0dae2
@@ -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),
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user