Skip to content

Commit

Permalink
ci: patch-package terser to avoid oom
Browse files Browse the repository at this point in the history
  • Loading branch information
aeneasr committed Oct 2, 2020
1 parent a22146f commit df10fd8
Show file tree
Hide file tree
Showing 3 changed files with 286 additions and 1 deletion.
270 changes: 270 additions & 0 deletions docs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"format": "prettier --write ${npm_package_consts_prettierTarget} ${npm_package_consts_prettierArgs} || true",
"format:check": "prettier --check ${npm_package_consts_prettierTarget} ${npm_package_consts_prettierArgs}"
"format:check": "prettier --check ${npm_package_consts_prettierTarget} ${npm_package_consts_prettierArgs}",
"postinstall": "patch-package"
},
"dependencies": {
"@docusaurus/core": "2.0.0-alpha.64",
Expand Down Expand Up @@ -48,6 +49,7 @@
"devDependencies": {
"json-schema-faker": "0.5.0-rcv.25",
"json-schema-ref-parser": "8.0.0",
"patch-package": "^6.2.2",
"prettier": "2.0.2",
"ramda": "0.27.0",
"raw-loader": "^4.0.1",
Expand Down
13 changes: 13 additions & 0 deletions docs/patches/@docusaurus+core+2.0.0-alpha.64.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/node_modules/@docusaurus/core/lib/webpack/base.js b/node_modules/@docusaurus/core/lib/webpack/base.js
index b409829..67384af 100644
--- a/node_modules/@docusaurus/core/lib/webpack/base.js
+++ b/node_modules/@docusaurus/core/lib/webpack/base.js
@@ -84,7 +84,7 @@ function createBaseConfig(props, isServer, minify) {
? [
new terser_webpack_plugin_1.default({
cache: true,
- parallel: true,
+ parallel: false, // https://github.com/facebook/docusaurus/pull/3497
sourceMap: false,
terserOptions: {
parse: {

0 comments on commit df10fd8

Please sign in to comment.