@docusaurus/core 0.0.0-4485 → 0.0.0-4489
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commands/build.js +4 -3
- package/package.json +14 -11
package/lib/commands/build.js
CHANGED
|
@@ -126,9 +126,9 @@ async function buildLocale({ siteDir, locale, cliOptions, forceTerminate, isLast
|
|
|
126
126
|
clientConfig = (0, utils_1.applyConfigurePostCss)(configurePostCss, clientConfig);
|
|
127
127
|
}
|
|
128
128
|
if (configureWebpack) {
|
|
129
|
-
clientConfig = (0, utils_1.applyConfigureWebpack)(configureWebpack.bind(plugin), // The plugin lifecycle may reference `this`.
|
|
129
|
+
clientConfig = (0, utils_1.applyConfigureWebpack)(configureWebpack.bind(plugin), // The plugin lifecycle may reference `this`.
|
|
130
130
|
clientConfig, false, (_a = props.siteConfig.webpack) === null || _a === void 0 ? void 0 : _a.jsLoader, plugin.content);
|
|
131
|
-
serverConfig = (0, utils_1.applyConfigureWebpack)(configureWebpack.bind(plugin), // The plugin lifecycle may reference `this`.
|
|
131
|
+
serverConfig = (0, utils_1.applyConfigureWebpack)(configureWebpack.bind(plugin), // The plugin lifecycle may reference `this`.
|
|
132
132
|
serverConfig, true, (_b = props.siteConfig.webpack) === null || _b === void 0 ? void 0 : _b.jsLoader, plugin.content);
|
|
133
133
|
}
|
|
134
134
|
});
|
|
@@ -153,7 +153,8 @@ async function buildLocale({ siteDir, locale, cliOptions, forceTerminate, isLast
|
|
|
153
153
|
if (!plugin.postBuild) {
|
|
154
154
|
return;
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
// The plugin may reference `this`. We manually bind it again to prevent any bugs.
|
|
157
|
+
await plugin.postBuild({ ...props, content: plugin.content });
|
|
157
158
|
}));
|
|
158
159
|
await (0, brokenLinks_1.handleBrokenLinks)({
|
|
159
160
|
allCollectedLinks,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docusaurus/core",
|
|
3
3
|
"description": "Easy to Maintain Open Source Documentation Websites",
|
|
4
|
-
"version": "0.0.0-
|
|
4
|
+
"version": "0.0.0-4489",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"@babel/runtime": "^7.16.3",
|
|
42
42
|
"@babel/runtime-corejs3": "^7.16.3",
|
|
43
43
|
"@babel/traverse": "^7.16.3",
|
|
44
|
-
"@docusaurus/cssnano-preset": "0.0.0-
|
|
45
|
-
"@docusaurus/logger": "0.0.0-
|
|
46
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
44
|
+
"@docusaurus/cssnano-preset": "0.0.0-4489",
|
|
45
|
+
"@docusaurus/logger": "0.0.0-4489",
|
|
46
|
+
"@docusaurus/mdx-loader": "0.0.0-4489",
|
|
47
47
|
"@docusaurus/react-loadable": "5.5.2",
|
|
48
|
-
"@docusaurus/utils": "0.0.0-
|
|
49
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
50
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
48
|
+
"@docusaurus/utils": "0.0.0-4489",
|
|
49
|
+
"@docusaurus/utils-common": "0.0.0-4489",
|
|
50
|
+
"@docusaurus/utils-validation": "0.0.0-4489",
|
|
51
51
|
"@slorber/static-site-generator-webpack-plugin": "^4.0.0",
|
|
52
52
|
"@svgr/webpack": "^6.0.0",
|
|
53
53
|
"autoprefixer": "^10.3.5",
|
|
@@ -102,18 +102,21 @@
|
|
|
102
102
|
"webpack-bundle-analyzer": "^4.4.2",
|
|
103
103
|
"webpack-dev-server": "^4.7.1",
|
|
104
104
|
"webpack-merge": "^5.8.0",
|
|
105
|
-
"webpackbar": "^5.0.
|
|
105
|
+
"webpackbar": "^5.0.2"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
109
|
-
"@docusaurus/types": "0.0.0-
|
|
108
|
+
"@docusaurus/module-type-aliases": "0.0.0-4489",
|
|
109
|
+
"@docusaurus/types": "0.0.0-4489",
|
|
110
110
|
"@types/copy-webpack-plugin": "^8.0.1",
|
|
111
111
|
"@types/detect-port": "^1.3.0",
|
|
112
112
|
"@types/mini-css-extract-plugin": "^1.4.3",
|
|
113
113
|
"@types/nprogress": "^0.2.0",
|
|
114
114
|
"@types/react-dom": "^17.0.9",
|
|
115
|
+
"@types/react-helmet": "^6.0.0",
|
|
116
|
+
"@types/react-router-config": "^5.0.1",
|
|
115
117
|
"@types/rtl-detect": "^1.0.0",
|
|
116
118
|
"@types/serve-handler": "^6.1.1",
|
|
119
|
+
"@types/wait-on": "^5.2.0",
|
|
117
120
|
"@types/webpack-bundle-analyzer": "^4.4.1",
|
|
118
121
|
"react-test-renderer": "^17.0.2",
|
|
119
122
|
"tmp-promise": "^3.0.2"
|
|
@@ -125,5 +128,5 @@
|
|
|
125
128
|
"engines": {
|
|
126
129
|
"node": ">=14"
|
|
127
130
|
},
|
|
128
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "f4020aaf26717ce5e5085a949cf3b7e088bc386f"
|
|
129
132
|
}
|