mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-28 05:58:38 +02:00
Use babel-plugin-transform-dynamic-import instead of babel-plugin-dynamic-import-node
This commit is contained in:
parent
fe25a318d7
commit
85f9b0aa77
3 changed files with 25 additions and 26 deletions
|
@ -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'],
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue