@docusaurus/core 0.0.0-5622 → 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.
@@ -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('${(0, utils_1.escapePath)(clientModule)}'),`)
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]) => ` '${chunkName}': [() => import(/* webpackChunkName: '${chunkName}' */ '${modulePath}'), '${modulePath}', require.resolveWeak('${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));
@@ -173,7 +173,11 @@ function applyConfigurePostCss(configurePostCss, config) {
173
173
  entry.options.postcssOptions = configurePostCss(entry.options.postcssOptions);
174
174
  }
175
175
  else if (Array.isArray(entry.oneOf)) {
176
- entry.oneOf.forEach(overridePostCssOptions);
176
+ entry.oneOf.forEach((r) => {
177
+ if (r) {
178
+ overridePostCssOptions(r);
179
+ }
180
+ });
177
181
  }
178
182
  else if (Array.isArray(entry.use)) {
179
183
  entry.use
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-5622",
4
+ "version": "0.0.0-5626",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -33,27 +33,27 @@
33
33
  "url": "https://github.com/facebook/docusaurus/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@babel/core": "^7.20.12",
37
- "@babel/generator": "^7.21.1",
36
+ "@babel/core": "^7.22.9",
37
+ "@babel/generator": "^7.22.9",
38
38
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
39
- "@babel/plugin-transform-runtime": "^7.21.0",
40
- "@babel/preset-env": "^7.20.2",
41
- "@babel/preset-react": "^7.18.6",
42
- "@babel/preset-typescript": "^7.21.0",
43
- "@babel/runtime": "^7.21.0",
44
- "@babel/runtime-corejs3": "^7.21.0",
45
- "@babel/traverse": "^7.21.2",
46
- "@docusaurus/cssnano-preset": "0.0.0-5622",
47
- "@docusaurus/logger": "0.0.0-5622",
48
- "@docusaurus/mdx-loader": "0.0.0-5622",
39
+ "@babel/plugin-transform-runtime": "^7.22.9",
40
+ "@babel/preset-env": "^7.22.9",
41
+ "@babel/preset-react": "^7.22.5",
42
+ "@babel/preset-typescript": "^7.22.5",
43
+ "@babel/runtime": "^7.22.6",
44
+ "@babel/runtime-corejs3": "^7.22.6",
45
+ "@babel/traverse": "^7.22.8",
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-5622",
51
- "@docusaurus/utils-common": "0.0.0-5622",
52
- "@docusaurus/utils-validation": "0.0.0-5622",
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
- "autoprefixer": "^10.4.13",
56
- "babel-loader": "^9.1.2",
55
+ "autoprefixer": "^10.4.14",
56
+ "babel-loader": "^9.1.3",
57
57
  "babel-plugin-dynamic-import-node": "^2.3.3",
58
58
  "boxen": "^6.2.1",
59
59
  "chalk": "^4.1.2",
@@ -63,25 +63,25 @@
63
63
  "combine-promises": "^1.1.0",
64
64
  "commander": "^5.1.0",
65
65
  "copy-webpack-plugin": "^11.0.0",
66
- "core-js": "^3.29.0",
67
- "css-loader": "^6.7.3",
66
+ "core-js": "^3.31.1",
67
+ "css-loader": "^6.8.1",
68
68
  "css-minimizer-webpack-plugin": "^4.2.2",
69
69
  "cssnano": "^5.1.15",
70
70
  "del": "^6.1.1",
71
71
  "detect-port": "^1.5.1",
72
72
  "escape-html": "^1.0.3",
73
- "eta": "^2.0.1",
73
+ "eta": "^2.2.0",
74
74
  "file-loader": "^6.2.0",
75
- "fs-extra": "^11.1.0",
76
- "html-minifier-terser": "^7.1.0",
77
- "html-tags": "^3.2.0",
78
- "html-webpack-plugin": "^5.5.0",
75
+ "fs-extra": "^11.1.1",
76
+ "html-minifier-terser": "^7.2.0",
77
+ "html-tags": "^3.3.1",
78
+ "html-webpack-plugin": "^5.5.3",
79
79
  "import-fresh": "^3.3.0",
80
80
  "leven": "^3.1.0",
81
81
  "lodash": "^4.17.21",
82
- "mini-css-extract-plugin": "^2.7.3",
83
- "postcss": "^8.4.21",
84
- "postcss-loader": "^7.0.2",
82
+ "mini-css-extract-plugin": "^2.7.6",
83
+ "postcss": "^8.4.26",
84
+ "postcss-loader": "^7.3.3",
85
85
  "prompts": "^2.4.2",
86
86
  "react-dev-utils": "^12.0.1",
87
87
  "react-helmet-async": "^1.3.0",
@@ -91,29 +91,29 @@
91
91
  "react-router-config": "^5.1.1",
92
92
  "react-router-dom": "^5.3.4",
93
93
  "rtl-detect": "^1.0.4",
94
- "semver": "^7.3.8",
94
+ "semver": "^7.5.4",
95
95
  "serve-handler": "^6.1.5",
96
96
  "shelljs": "^0.8.5",
97
- "terser-webpack-plugin": "^5.3.7",
98
- "tslib": "^2.5.0",
97
+ "terser-webpack-plugin": "^5.3.9",
98
+ "tslib": "^2.6.0",
99
99
  "update-notifier": "^6.0.2",
100
100
  "url-loader": "^4.1.1",
101
101
  "wait-on": "^7.0.1",
102
- "webpack": "^5.76.0",
103
- "webpack-bundle-analyzer": "^4.8.0",
104
- "webpack-dev-server": "^4.11.1",
105
- "webpack-merge": "^5.8.0",
102
+ "webpack": "^5.88.1",
103
+ "webpack-bundle-analyzer": "^4.9.0",
104
+ "webpack-dev-server": "^4.15.1",
105
+ "webpack-merge": "^5.9.0",
106
106
  "webpackbar": "^5.0.2"
107
107
  },
108
108
  "devDependencies": {
109
- "@docusaurus/module-type-aliases": "0.0.0-5622",
110
- "@docusaurus/types": "0.0.0-5622",
111
- "@types/detect-port": "^1.3.2",
112
- "@types/react-dom": "^18.0.11",
113
- "@types/react-router-config": "^5.0.6",
109
+ "@docusaurus/module-type-aliases": "0.0.0-5626",
110
+ "@docusaurus/types": "0.0.0-5626",
111
+ "@types/detect-port": "^1.3.3",
112
+ "@types/react-dom": "^18.2.7",
113
+ "@types/react-router-config": "^5.0.7",
114
114
  "@types/rtl-detect": "^1.0.0",
115
115
  "@types/serve-handler": "^6.1.1",
116
- "@types/update-notifier": "^6.0.2",
116
+ "@types/update-notifier": "^6.0.4",
117
117
  "@types/wait-on": "^5.3.1",
118
118
  "@types/webpack-bundle-analyzer": "^4.6.0",
119
119
  "react-test-renderer": "^18.0.0",
@@ -127,5 +127,5 @@
127
127
  "engines": {
128
128
  "node": ">=16.14"
129
129
  },
130
- "gitHead": "4381c061ef449e9f314e9fe180991df414ce923c"
130
+ "gitHead": "076431a4f8d43ab0c620ccbf2fcff42230a0c1ac"
131
131
  }