@docusaurus/core 0.0.0-5623 → 0.0.0-5626
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/server/index.js +4 -2
- package/package.json +10 -10
package/lib/server/index.js
CHANGED
|
@@ -102,14 +102,16 @@ export default ${JSON.stringify(siteConfig, null, 2)};
|
|
|
102
102
|
${clientModules
|
|
103
103
|
// Use `require()` because `import()` is async but client modules can have CSS
|
|
104
104
|
// and the order matters for loading CSS.
|
|
105
|
-
.map((clientModule) => ` require(
|
|
105
|
+
.map((clientModule) => ` require("${(0, utils_1.escapePath)(clientModule)}"),`)
|
|
106
106
|
.join('\n')}
|
|
107
107
|
];
|
|
108
108
|
`);
|
|
109
109
|
const genRegistry = (0, utils_1.generate)(generatedFilesDir, 'registry.js', `export default {
|
|
110
110
|
${Object.entries(registry)
|
|
111
111
|
.sort((a, b) => a[0].localeCompare(b[0]))
|
|
112
|
-
.map(([chunkName, modulePath]) =>
|
|
112
|
+
.map(([chunkName, modulePath]) =>
|
|
113
|
+
// modulePath is already escaped by escapePath
|
|
114
|
+
` "${chunkName}": [() => import(/* webpackChunkName: "${chunkName}" */ "${modulePath}"), "${modulePath}", require.resolveWeak("${modulePath}")],`)
|
|
113
115
|
.join('\n')}};
|
|
114
116
|
`);
|
|
115
117
|
const genRoutesChunkNames = (0, utils_1.generate)(generatedFilesDir, 'routesChunkNames.json', JSON.stringify(routesChunkNames, null, 2));
|
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-5626",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -43,13 +43,13 @@
|
|
|
43
43
|
"@babel/runtime": "^7.22.6",
|
|
44
44
|
"@babel/runtime-corejs3": "^7.22.6",
|
|
45
45
|
"@babel/traverse": "^7.22.8",
|
|
46
|
-
"@docusaurus/cssnano-preset": "0.0.0-
|
|
47
|
-
"@docusaurus/logger": "0.0.0-
|
|
48
|
-
"@docusaurus/mdx-loader": "0.0.0-
|
|
46
|
+
"@docusaurus/cssnano-preset": "0.0.0-5626",
|
|
47
|
+
"@docusaurus/logger": "0.0.0-5626",
|
|
48
|
+
"@docusaurus/mdx-loader": "0.0.0-5626",
|
|
49
49
|
"@docusaurus/react-loadable": "5.5.2",
|
|
50
|
-
"@docusaurus/utils": "0.0.0-
|
|
51
|
-
"@docusaurus/utils-common": "0.0.0-
|
|
52
|
-
"@docusaurus/utils-validation": "0.0.0-
|
|
50
|
+
"@docusaurus/utils": "0.0.0-5626",
|
|
51
|
+
"@docusaurus/utils-common": "0.0.0-5626",
|
|
52
|
+
"@docusaurus/utils-validation": "0.0.0-5626",
|
|
53
53
|
"@slorber/static-site-generator-webpack-plugin": "^4.0.7",
|
|
54
54
|
"@svgr/webpack": "^6.5.1",
|
|
55
55
|
"autoprefixer": "^10.4.14",
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
"webpackbar": "^5.0.2"
|
|
107
107
|
},
|
|
108
108
|
"devDependencies": {
|
|
109
|
-
"@docusaurus/module-type-aliases": "0.0.0-
|
|
110
|
-
"@docusaurus/types": "0.0.0-
|
|
109
|
+
"@docusaurus/module-type-aliases": "0.0.0-5626",
|
|
110
|
+
"@docusaurus/types": "0.0.0-5626",
|
|
111
111
|
"@types/detect-port": "^1.3.3",
|
|
112
112
|
"@types/react-dom": "^18.2.7",
|
|
113
113
|
"@types/react-router-config": "^5.0.7",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"engines": {
|
|
128
128
|
"node": ">=16.14"
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "076431a4f8d43ab0c620ccbf2fcff42230a0c1ac"
|
|
131
131
|
}
|