mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-28 16:37:07 +02:00
chore(v2): revert back to babel-plugin-dynamic-import-node (#1037)
This commit is contained in:
parent
b577f60d4a
commit
1c333ee22a
4 changed files with 1367 additions and 10 deletions
|
@ -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',
|
||||
],
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue