mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-12 16:47:26 +02:00
chore(v2): update dependencies (#1462)
* chore(v2): update dependencies * nits
This commit is contained in:
parent
110126ab1d
commit
e31bf50545
12 changed files with 337 additions and 307 deletions
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"lerna": "3.13.1",
|
"lerna": "3.14.1",
|
||||||
"version": "2.0.0-alpha.15",
|
"version": "2.0.0-alpha.15",
|
||||||
"npmClient": "yarn",
|
"npmClient": "yarn",
|
||||||
"useWorkspaces": true
|
"useWorkspaces": true
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
"glob-promise": "^3.3.0",
|
"glob-promise": "^3.3.0",
|
||||||
"husky": "^1.3.1",
|
"husky": "^1.3.1",
|
||||||
"jest": "^24.6.0",
|
"jest": "^24.6.0",
|
||||||
"lerna": "^3.13.1",
|
"lerna": "^3.14.1",
|
||||||
"lint-staged": "^7.2.0",
|
"lint-staged": "^7.2.0",
|
||||||
"prettier": "^1.13.7",
|
"prettier": "^1.13.7",
|
||||||
"react": "^16.8.4",
|
"react": "^16.8.4",
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
"lodash": "^4.17.11"
|
"lodash": "^4.17.11"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@docusaurus/core": "^2.0.0-alpha.14",
|
"@docusaurus/core": "^2.0.0",
|
||||||
"react": "^16.8.4",
|
"react": "^16.8.4",
|
||||||
"react-dom": "^16.8.4"
|
"react-dom": "^16.8.4"
|
||||||
},
|
},
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
"loader-utils": "^1.2.3"
|
"loader-utils": "^1.2.3"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@docusaurus/core": "^2.0.0-alpha.14",
|
"@docusaurus/core": "^2.0.0",
|
||||||
"react": "^16.8.4",
|
"react": "^16.8.4",
|
||||||
"react-dom": "^16.8.4",
|
"react-dom": "^16.8.4",
|
||||||
"react-router-config": "^5.0.0"
|
"react-router-config": "^5.0.0"
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"globby": "^9.1.0"
|
"globby": "^9.1.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@docusaurus/core": "^2.0.0-alpha.14",
|
"@docusaurus/core": "^2.0.0",
|
||||||
"react": "^16.8.4",
|
"react": "^16.8.4",
|
||||||
"react-dom": "^16.8.4"
|
"react-dom": "^16.8.4"
|
||||||
},
|
},
|
||||||
|
|
|
@ -11,6 +11,6 @@
|
||||||
"sitemap": "^2.1.0"
|
"sitemap": "^2.1.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@docusaurus/core": "^2.0.0-alpha.14"
|
"@docusaurus/core": "^2.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,6 @@
|
||||||
"@docusaurus/theme-search-algolia": "^2.0.0-alpha.15"
|
"@docusaurus/theme-search-algolia": "^2.0.0-alpha.15"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@docusaurus/core": "^2.0.0-alpha.14"
|
"@docusaurus/core": "^2.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
"docsearch.js": "^2.5.2"
|
"docsearch.js": "^2.5.2"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@docusaurus/core": "^2.0.0-alpha.14",
|
"@docusaurus/core": "^2.0.0",
|
||||||
"react": "^16.8.4",
|
"react": "^16.8.4",
|
||||||
"react-dom": "^16.8.4"
|
"react-dom": "^16.8.4"
|
||||||
},
|
},
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"docsearch.js": "^2.6.3"
|
"docsearch.js": "^2.6.3"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@docusaurus/core": "^2.0.0-alpha.14",
|
"@docusaurus/core": "^2.0.0",
|
||||||
"react": "^16.8.4",
|
"react": "^16.8.4",
|
||||||
"react-dom": "^16.8.4"
|
"react-dom": "^16.8.4"
|
||||||
},
|
},
|
||||||
|
|
|
@ -50,24 +50,24 @@
|
||||||
"globby": "^9.1.0",
|
"globby": "^9.1.0",
|
||||||
"html-webpack-plugin": "^4.0.0-beta.5",
|
"html-webpack-plugin": "^4.0.0-beta.5",
|
||||||
"import-fresh": "^3.0.0",
|
"import-fresh": "^3.0.0",
|
||||||
"is-wsl": "^1.1.0",
|
|
||||||
"lodash": "^4.17.11",
|
"lodash": "^4.17.11",
|
||||||
"mini-css-extract-plugin": "^0.4.1",
|
"mini-css-extract-plugin": "^0.4.1",
|
||||||
"nprogress": "^0.2.0",
|
"nprogress": "^0.2.0",
|
||||||
"null-loader": "^1.0.0",
|
"null-loader": "^2.0.0",
|
||||||
"portfinder": "^1.0.13",
|
"portfinder": "^1.0.13",
|
||||||
"react-dev-utils": "^8.0.0",
|
"react-dev-utils": "^8.0.0",
|
||||||
"react-helmet": "^6.0.0-beta",
|
"react-helmet": "^6.0.0-beta",
|
||||||
"react-loadable": "^5.5.0",
|
"react-loadable": "^5.5.0",
|
||||||
"react-loadable-ssr-addon": "^0.1.8",
|
"react-loadable-ssr-addon": "^0.1.8",
|
||||||
|
"react-router": "^5.0.0",
|
||||||
"react-router-config": "^5.0.0",
|
"react-router-config": "^5.0.0",
|
||||||
"react-router-dom": "^5.0.0",
|
"react-router-dom": "^5.0.0",
|
||||||
"semver": "^6.0.0",
|
"semver": "^6.0.0",
|
||||||
"shelljs": "^0.8.2",
|
"shelljs": "^0.8.2",
|
||||||
"static-site-generator-webpack-plugin": "^3.4.2",
|
"static-site-generator-webpack-plugin": "^3.4.2",
|
||||||
"style-loader": "^0.22.1",
|
"style-loader": "^0.22.1",
|
||||||
"terser-webpack-plugin": "^1.2.3",
|
"terser-webpack-plugin": "^1.2.4",
|
||||||
"wait-on": "^3.2.0",
|
"wait-on": "endiliey/wait-on#master",
|
||||||
"webpack": "^4.30.0",
|
"webpack": "^4.30.0",
|
||||||
"webpack-bundle-analyzer": "^3.1.0",
|
"webpack-bundle-analyzer": "^3.1.0",
|
||||||
"webpack-dev-server": "^3.2.1",
|
"webpack-dev-server": "^3.2.1",
|
||||||
|
|
|
@ -9,7 +9,6 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
||||||
const TerserPlugin = require('terser-webpack-plugin');
|
const TerserPlugin = require('terser-webpack-plugin');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const fs = require('fs-extra');
|
const fs = require('fs-extra');
|
||||||
const isWsl = require('is-wsl');
|
|
||||||
const {getBabelLoader, getCacheLoader, getStyleLoaders} = require('./utils');
|
const {getBabelLoader, getCacheLoader, getStyleLoaders} = require('./utils');
|
||||||
|
|
||||||
const CSS_REGEX = /\.css$/;
|
const CSS_REGEX = /\.css$/;
|
||||||
|
@ -58,9 +57,7 @@ module.exports = function createBaseConfig(props, isServer) {
|
||||||
minimizer: [
|
minimizer: [
|
||||||
new TerserPlugin({
|
new TerserPlugin({
|
||||||
cache: true,
|
cache: true,
|
||||||
// Disabled on WSL (Windows Subsystem for Linux) due to an issue with Terser
|
parallel: true,
|
||||||
// https://github.com/webpack-contrib/terser-webpack-plugin/issues/21
|
|
||||||
parallel: !isWsl,
|
|
||||||
sourceMap: true,
|
sourceMap: true,
|
||||||
terserOptions: {
|
terserOptions: {
|
||||||
ecma: 6,
|
ecma: 6,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue