mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 18:32:52 +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,
|
babelrc: false,
|
||||||
presets: ['@babel/env', '@babel/react'],
|
presets: ['@babel/env', '@babel/react'],
|
||||||
plugins: [
|
plugins: [
|
||||||
isServer
|
isServer ? 'dynamic-import-node' : '@babel/syntax-dynamic-import',
|
||||||
? 'babel-plugin-transform-dynamic-import'
|
|
||||||
: '@babel/syntax-dynamic-import',
|
|
||||||
],
|
],
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
"@babel/preset-react": "^7.0.0",
|
"@babel/preset-react": "^7.0.0",
|
||||||
"babel-jest": "^23.6.0",
|
"babel-jest": "^23.6.0",
|
||||||
"babel-loader": "^8.0.0",
|
"babel-loader": "^8.0.0",
|
||||||
"babel-plugin-transform-dynamic-import": "^2.1.0",
|
"babel-plugin-dynamic-import-node": "^2.2.0",
|
||||||
"chalk": "^2.4.1",
|
"chalk": "^2.4.1",
|
||||||
"chokidar": "^2.0.4",
|
"chokidar": "^2.0.4",
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
|
|
1186
v2/yarn.lock
1186
v2/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue