Use babel-plugin-transform-dynamic-import instead of babel-plugin-dynamic-import-node

This commit is contained in:
Fienny Angelina 2018-10-08 00:29:44 +08:00
parent fe25a318d7
commit 85f9b0aa77
3 changed files with 25 additions and 26 deletions

View file

@ -52,7 +52,7 @@ module.exports = function createBaseConfig(props, isServer) {
.options({
babelrc: false,
presets: ['@babel/env', '@babel/react'],
plugins: [isServer ? 'dynamic-import-node' : 'syntax-dynamic-import'],
plugins: [isServer ? 'babel-plugin-transform-dynamic-import' : '@babel/syntax-dynamic-import'],
});
}