chore(v2): revert back to babel-plugin-dynamic-import-node (#1037)

This commit is contained in:
Vikram Rangaraj 2018-10-14 15:22:06 -07:00 committed by Yangshun Tay
parent b577f60d4a
commit 1c333ee22a
4 changed files with 1367 additions and 10 deletions

View file

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