@docusaurus/core 4.0.0-canary-6892 → 4.0.0-canary-6894
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.
|
@@ -46,22 +46,18 @@ exports.DEFAULT_STORAGE_CONFIG = {
|
|
|
46
46
|
namespace: false,
|
|
47
47
|
};
|
|
48
48
|
exports.DEFAULT_FASTER_CONFIG = {
|
|
49
|
-
swcJsLoader: false,
|
|
50
49
|
swcJsMinimizer: false,
|
|
51
50
|
swcHtmlMinimizer: false,
|
|
52
51
|
lightningCssMinimizer: false,
|
|
53
|
-
mdxCrossCompilerCache: false,
|
|
54
52
|
rspackBundler: false,
|
|
55
53
|
rspackPersistentCache: false,
|
|
56
54
|
gitEagerVcs: false,
|
|
57
55
|
};
|
|
58
56
|
// When using the "faster: true" shortcut
|
|
59
57
|
exports.DEFAULT_FASTER_CONFIG_TRUE = {
|
|
60
|
-
swcJsLoader: true,
|
|
61
58
|
swcJsMinimizer: true,
|
|
62
59
|
swcHtmlMinimizer: true,
|
|
63
60
|
lightningCssMinimizer: true,
|
|
64
|
-
mdxCrossCompilerCache: true,
|
|
65
61
|
rspackBundler: true,
|
|
66
62
|
rspackPersistentCache: true,
|
|
67
63
|
gitEagerVcs: true,
|
|
@@ -208,14 +204,17 @@ const I18N_CONFIG_SCHEMA = utils_validation_1.Joi.object({
|
|
|
208
204
|
// the future.v4.fasterByDefault flag
|
|
209
205
|
const FASTER_CONFIG_SCHEMA = utils_validation_1.Joi.alternatives()
|
|
210
206
|
.try(utils_validation_1.Joi.object({
|
|
211
|
-
swcJsLoader: utils_validation_1.Joi.boolean(),
|
|
212
207
|
swcJsMinimizer: utils_validation_1.Joi.boolean(),
|
|
213
208
|
swcHtmlMinimizer: utils_validation_1.Joi.boolean(),
|
|
214
209
|
lightningCssMinimizer: utils_validation_1.Joi.boolean(),
|
|
215
|
-
mdxCrossCompilerCache: utils_validation_1.Joi.boolean(),
|
|
216
210
|
rspackBundler: utils_validation_1.Joi.boolean(),
|
|
217
211
|
rspackPersistentCache: utils_validation_1.Joi.boolean(),
|
|
218
212
|
gitEagerVcs: utils_validation_1.Joi.boolean(),
|
|
213
|
+
swcJsLoader: utils_validation_1.Joi.any()
|
|
214
|
+
.forbidden()
|
|
215
|
+
.messages({
|
|
216
|
+
'any.unknown': `The Docusaurus config ${logger_1.default.code('future.faster.swcJsLoader')} has been removed. Rspack always uses its built-in SWC loader. Webpack uses Babel by default, and you can provide a custom JS loader with ${logger_1.default.code('siteConfig.webpack.jsLoader')}.`,
|
|
217
|
+
}),
|
|
219
218
|
}), utils_validation_1.Joi.boolean()
|
|
220
219
|
.required()
|
|
221
220
|
.custom((bool) => bool ? exports.DEFAULT_FASTER_CONFIG_TRUE : exports.DEFAULT_FASTER_CONFIG))
|
|
@@ -60,7 +60,6 @@ function createBootstrapPlugin({ siteDir, siteConfig, }) {
|
|
|
60
60
|
*/
|
|
61
61
|
async function createMDXFallbackPlugin({ siteDir, siteConfig, }) {
|
|
62
62
|
const mdxLoaderItem = await (0, mdx_loader_1.createMDXLoaderItem)({
|
|
63
|
-
useCrossCompilerCache: siteConfig.future.faster.mdxCrossCompilerCache,
|
|
64
63
|
admonitions: true,
|
|
65
64
|
staticDirs: siteConfig.staticDirectories.map((dir) => node_path_1.default.resolve(siteDir, dir)),
|
|
66
65
|
siteDir,
|
|
@@ -15,7 +15,7 @@ const babel_1 = require("@docusaurus/babel");
|
|
|
15
15
|
const logger_1 = tslib_1.__importDefault(require("@docusaurus/logger"));
|
|
16
16
|
const uselessBabelConfigMessages = async ({ site }) => {
|
|
17
17
|
const { props: { siteDir, siteConfig }, } = site;
|
|
18
|
-
if (siteConfig.future.faster.
|
|
18
|
+
if (siteConfig.future.faster.rspackBundler) {
|
|
19
19
|
const babelConfigFilePath = await (0, babel_1.getCustomBabelConfigFilePath)(siteDir);
|
|
20
20
|
if (babelConfigFilePath) {
|
|
21
21
|
return [
|
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": "4.0.0-canary-
|
|
4
|
+
"version": "4.0.0-canary-6894",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"url": "https://github.com/facebook/docusaurus/issues"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@docusaurus/babel": "4.0.0-canary-
|
|
37
|
-
"@docusaurus/bundler": "4.0.0-canary-
|
|
38
|
-
"@docusaurus/fs": "4.0.0-canary-
|
|
39
|
-
"@docusaurus/glob": "4.0.0-canary-
|
|
40
|
-
"@docusaurus/logger": "4.0.0-canary-
|
|
41
|
-
"@docusaurus/mdx-loader": "4.0.0-canary-
|
|
42
|
-
"@docusaurus/utils": "4.0.0-canary-
|
|
43
|
-
"@docusaurus/utils-common": "4.0.0-canary-
|
|
44
|
-
"@docusaurus/utils-validation": "4.0.0-canary-
|
|
36
|
+
"@docusaurus/babel": "4.0.0-canary-6894",
|
|
37
|
+
"@docusaurus/bundler": "4.0.0-canary-6894",
|
|
38
|
+
"@docusaurus/fs": "4.0.0-canary-6894",
|
|
39
|
+
"@docusaurus/glob": "4.0.0-canary-6894",
|
|
40
|
+
"@docusaurus/logger": "4.0.0-canary-6894",
|
|
41
|
+
"@docusaurus/mdx-loader": "4.0.0-canary-6894",
|
|
42
|
+
"@docusaurus/utils": "4.0.0-canary-6894",
|
|
43
|
+
"@docusaurus/utils-common": "4.0.0-canary-6894",
|
|
44
|
+
"@docusaurus/utils-validation": "4.0.0-canary-6894",
|
|
45
45
|
"boxen": "^9.0.0",
|
|
46
46
|
"cli-table3": "^0.6.5",
|
|
47
47
|
"combine-promises": "^1.2.0",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"webpack-merge": "^6.0.1"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@docusaurus/module-type-aliases": "4.0.0-canary-
|
|
76
|
-
"@docusaurus/types": "4.0.0-canary-
|
|
75
|
+
"@docusaurus/module-type-aliases": "4.0.0-canary-6894",
|
|
76
|
+
"@docusaurus/types": "4.0.0-canary-6894",
|
|
77
77
|
"@total-typescript/shoehorn": "^0.1.2",
|
|
78
78
|
"@types/escape-html": "^1.0.4",
|
|
79
79
|
"@types/history": "^4.7.11",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"utility-types": "^3.11.0"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
|
-
"@docusaurus/faster": "4.0.0-canary-
|
|
90
|
+
"@docusaurus/faster": "4.0.0-canary-6894",
|
|
91
91
|
"@mdx-js/react": "^3.1.1",
|
|
92
92
|
"react": "^19.3.0",
|
|
93
93
|
"react-dom": "^19.3.0"
|
|
@@ -100,5 +100,5 @@
|
|
|
100
100
|
"engines": {
|
|
101
101
|
"node": ">=24.21"
|
|
102
102
|
},
|
|
103
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "fd790ec4701679f498019f9ba8ae1b32fe1b86d2"
|
|
104
104
|
}
|