mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
fix(v2): map loaded modules to bundles (#1056)
* fix(v2): map loaded modules to bundles * nits
This commit is contained in:
parent
2ce6ca5854
commit
5d60739f7c
3 changed files with 37 additions and 16 deletions
|
@ -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',
|
||||
],
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue