fix(v2): map loaded modules to bundles (#1056)

* fix(v2): map loaded modules to bundles

* nits
This commit is contained in:
Endilie Yacop Sucipto 2018-10-23 15:53:18 +08:00 committed by Yangshun Tay
parent 2ce6ca5854
commit 5d60739f7c
3 changed files with 37 additions and 16 deletions

View file

@ -60,6 +60,7 @@ module.exports = function createBaseConfig(props, isServer) {
presets: ['@babel/env', '@babel/react'],
plugins: [
isServer ? 'dynamic-import-node' : '@babel/syntax-dynamic-import',
'react-loadable/babel',
],
});
}