@docusaurus/core 4.0.0-canary-6893 → 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,7 +46,6 @@ 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,
|
|
@@ -56,7 +55,6 @@ exports.DEFAULT_FASTER_CONFIG = {
|
|
|
56
55
|
};
|
|
57
56
|
// When using the "faster: true" shortcut
|
|
58
57
|
exports.DEFAULT_FASTER_CONFIG_TRUE = {
|
|
59
|
-
swcJsLoader: true,
|
|
60
58
|
swcJsMinimizer: true,
|
|
61
59
|
swcHtmlMinimizer: true,
|
|
62
60
|
lightningCssMinimizer: true,
|
|
@@ -206,13 +204,17 @@ const I18N_CONFIG_SCHEMA = utils_validation_1.Joi.object({
|
|
|
206
204
|
// the future.v4.fasterByDefault flag
|
|
207
205
|
const FASTER_CONFIG_SCHEMA = utils_validation_1.Joi.alternatives()
|
|
208
206
|
.try(utils_validation_1.Joi.object({
|
|
209
|
-
swcJsLoader: utils_validation_1.Joi.boolean(),
|
|
210
207
|
swcJsMinimizer: utils_validation_1.Joi.boolean(),
|
|
211
208
|
swcHtmlMinimizer: utils_validation_1.Joi.boolean(),
|
|
212
209
|
lightningCssMinimizer: utils_validation_1.Joi.boolean(),
|
|
213
210
|
rspackBundler: utils_validation_1.Joi.boolean(),
|
|
214
211
|
rspackPersistentCache: utils_validation_1.Joi.boolean(),
|
|
215
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
|
+
}),
|
|
216
218
|
}), utils_validation_1.Joi.boolean()
|
|
217
219
|
.required()
|
|
218
220
|
.custom((bool) => bool ? exports.DEFAULT_FASTER_CONFIG_TRUE : exports.DEFAULT_FASTER_CONFIG))
|
|
@@ -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
|
}
|