mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
fix(v2): fix missing deps and wrong babel config (#1867)
* fix(v2): fix missing deps and wrong babel config * nits
This commit is contained in:
parent
e5bb7c2ab8
commit
484526443e
5 changed files with 28 additions and 16 deletions
|
@ -1,6 +1,10 @@
|
|||
# Docusaurus 2 Changelog
|
||||
|
||||
## 2.0.0-alpha.29
|
||||
|
||||
**HOTFIX for 2.0.0-alpha.28**.
|
||||
- Fix missing `core-js` dependencies on `@docusaurus/core`.
|
||||
- Fix wrong `@babel/env` preset configuration that causes build compilation error.
|
||||
- New UI for webpack compilation progress bar.
|
||||
|
||||
## 2.0.0-alpha.28
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
"classnames": "^2.2.6",
|
||||
"commander": "^2.20.0",
|
||||
"copy-webpack-plugin": "^5.0.4",
|
||||
"core-js": "^2.6.10",
|
||||
"css-loader": "^3.2.0",
|
||||
"del": "^4.1.1",
|
||||
"ejs": "^2.6.2",
|
||||
|
|
|
@ -89,7 +89,9 @@ export function getBabelLoader(isServer: boolean, babelOptions?: {}): Loader {
|
|||
babelrc: false,
|
||||
configFile: false,
|
||||
presets: [
|
||||
[
|
||||
isServer
|
||||
? '@babel/env'
|
||||
: [
|
||||
'@babel/env',
|
||||
{
|
||||
useBuiltIns: 'usage',
|
||||
|
|
|
@ -37,8 +37,8 @@ Meanwhile, the default doc site functionalities provided by Docusaurus 1 are now
|
|||
{
|
||||
dependencies: {
|
||||
- "docusaurus": "^1.x.x",
|
||||
+ "@docusaurus/core": "^2.0.0-alpha.28",
|
||||
+ "@docusaurus/preset-classic": "^2.0.0-alpha.28",
|
||||
+ "@docusaurus/core": "^2.0.0-alpha.29",
|
||||
+ "@docusaurus/preset-classic": "^2.0.0-alpha.29",
|
||||
}
|
||||
}
|
||||
```
|
||||
|
@ -71,8 +71,8 @@ A typical Docusaurus 2 `package.json` may look like this:
|
|||
"deploy": "docusaurus deploy"
|
||||
},
|
||||
"dependencies": {
|
||||
"@docusaurus/core": "^2.0.0-alpha.28",
|
||||
"@docusaurus/preset-classic": "^2.0.0-alpha.28",
|
||||
"@docusaurus/core": "^2.0.0-alpha.29",
|
||||
"@docusaurus/preset-classic": "^2.0.0-alpha.29",
|
||||
"classnames": "^2.2.6",
|
||||
"react": "^16.10.2",
|
||||
"react-dom": "^16.10.2"
|
||||
|
|
|
@ -5165,6 +5165,11 @@ core-js@^2.4.1, core-js@^2.5.7, core-js@^2.6.5:
|
|||
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.9.tgz#6b4b214620c834152e179323727fc19741b084f2"
|
||||
integrity sha512-HOpZf6eXmnl7la+cUdMnLvUxKNqLUzJvgIziQ0DiF3JwSImNphIqdGqzj6hIKyX04MmV0poclQ7+wjWvxQyR2A==
|
||||
|
||||
core-js@^2.6.10:
|
||||
version "2.6.10"
|
||||
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.10.tgz#8a5b8391f8cc7013da703411ce5b585706300d7f"
|
||||
integrity sha512-I39t74+4t+zau64EN1fE5v2W31Adtc/REhzWN+gWRRXg6WH5qAsZm62DHpQ1+Yhe4047T55jvzz7MUqF/dBBlA==
|
||||
|
||||
core-util-is@1.0.2, core-util-is@~1.0.0:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue