mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 00:27:21 +02:00
chore(v2): upgrade to Babel 7 (#1012)
* Upgrade babel in v2 folder
* Use babel-plugin-transform-dynamic-import instead of babel-plugin-dynamic-import-node
* Remove not needed import polyfill by changing the order of import
* Revert "Remove not needed import polyfill by changing the order of import"
This reverts commit 9263aa693a
.
* Fix prettier
This commit is contained in:
parent
2e9656917c
commit
d052feec40
12 changed files with 727 additions and 472 deletions
|
@ -51,8 +51,12 @@ module.exports = function createBaseConfig(props, isServer) {
|
|||
.loader('babel-loader')
|
||||
.options({
|
||||
babelrc: false,
|
||||
presets: ['env', 'react'],
|
||||
plugins: [isServer ? 'dynamic-import-node' : 'syntax-dynamic-import'],
|
||||
presets: ['@babel/env', '@babel/react'],
|
||||
plugins: [
|
||||
isServer
|
||||
? 'babel-plugin-transform-dynamic-import'
|
||||
: '@babel/syntax-dynamic-import',
|
||||
],
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue