@docusaurus/core 3.8.1-canary-6356 → 3.8.1-canary-6359
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/webpack/base.js +24 -28
- package/package.json +11 -11
package/lib/webpack/base.js
CHANGED
|
@@ -111,35 +111,31 @@ async function createBaseConfig({ props, isServer, minify, faster, configureWebp
|
|
|
111
111
|
}
|
|
112
112
|
function getExperiments() {
|
|
113
113
|
if (props.currentBundler.name === 'rspack') {
|
|
114
|
-
const PersistentCacheAttributes = process.env
|
|
115
|
-
.DOCUSAURUS_NO_PERSISTENT_CACHE
|
|
116
|
-
? {}
|
|
117
|
-
: {
|
|
118
|
-
cache: {
|
|
119
|
-
type: 'persistent',
|
|
120
|
-
// Rspack doesn't have "cache.name" like Webpack
|
|
121
|
-
// This is not ideal but work around is to merge name/version
|
|
122
|
-
// See https://github.com/web-infra-dev/rspack/pull/8920#issuecomment-2658938695
|
|
123
|
-
version: `${getCacheName()}-${getCacheVersion()}`,
|
|
124
|
-
buildDependencies: getCacheBuildDependencies(),
|
|
125
|
-
},
|
|
126
|
-
};
|
|
127
114
|
// TODO find a way to type this
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
115
|
+
const experiments = {};
|
|
116
|
+
if (!process.env.DOCUSAURUS_NO_PERSISTENT_CACHE) {
|
|
117
|
+
experiments.cache = {
|
|
118
|
+
type: 'persistent',
|
|
119
|
+
// Rspack doesn't have "cache.name" like Webpack
|
|
120
|
+
// This is not ideal but work around is to merge name/version
|
|
121
|
+
// See https://github.com/web-infra-dev/rspack/pull/8920#issuecomment-2658938695
|
|
122
|
+
version: `${getCacheName()}-${getCacheVersion()}`,
|
|
123
|
+
buildDependencies: getCacheBuildDependencies(),
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
if (process.env.DISABLE_RSPACK_INCREMENTAL) {
|
|
127
|
+
// Enabled by default since Rspack 1.4
|
|
128
|
+
console.log('Rspack incremental disabled');
|
|
129
|
+
experiments.incremental = false;
|
|
130
|
+
}
|
|
131
|
+
if (process.env.ENABLE_RSPACK_LAZY_COMPILATION) {
|
|
132
|
+
console.log('Rspack lazyCompilation enabled');
|
|
133
|
+
experiments.lazyCompilation = true;
|
|
134
|
+
}
|
|
135
|
+
// TODO re-enable later, there's an Rspack performance issue
|
|
136
|
+
// see https://github.com/facebook/docusaurus/pull/11178
|
|
137
|
+
experiments.parallelCodeSplitting = false;
|
|
138
|
+
return experiments;
|
|
143
139
|
}
|
|
144
140
|
return undefined;
|
|
145
141
|
}
|
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": "3.8.1-canary-
|
|
4
|
+
"version": "3.8.1-canary-6359",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"url": "https://github.com/facebook/docusaurus/issues"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@docusaurus/babel": "3.8.1-canary-
|
|
37
|
-
"@docusaurus/bundler": "3.8.1-canary-
|
|
38
|
-
"@docusaurus/logger": "3.8.1-canary-
|
|
39
|
-
"@docusaurus/mdx-loader": "3.8.1-canary-
|
|
40
|
-
"@docusaurus/utils": "3.8.1-canary-
|
|
41
|
-
"@docusaurus/utils-common": "3.8.1-canary-
|
|
42
|
-
"@docusaurus/utils-validation": "3.8.1-canary-
|
|
36
|
+
"@docusaurus/babel": "3.8.1-canary-6359",
|
|
37
|
+
"@docusaurus/bundler": "3.8.1-canary-6359",
|
|
38
|
+
"@docusaurus/logger": "3.8.1-canary-6359",
|
|
39
|
+
"@docusaurus/mdx-loader": "3.8.1-canary-6359",
|
|
40
|
+
"@docusaurus/utils": "3.8.1-canary-6359",
|
|
41
|
+
"@docusaurus/utils-common": "3.8.1-canary-6359",
|
|
42
|
+
"@docusaurus/utils-validation": "3.8.1-canary-6359",
|
|
43
43
|
"boxen": "^6.2.1",
|
|
44
44
|
"chalk": "^4.1.2",
|
|
45
45
|
"chokidar": "^3.5.3",
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
"webpack-merge": "^6.0.1"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@docusaurus/module-type-aliases": "3.8.1-canary-
|
|
81
|
-
"@docusaurus/types": "3.8.1-canary-
|
|
80
|
+
"@docusaurus/module-type-aliases": "3.8.1-canary-6359",
|
|
81
|
+
"@docusaurus/types": "3.8.1-canary-6359",
|
|
82
82
|
"@total-typescript/shoehorn": "^0.1.2",
|
|
83
83
|
"@types/detect-port": "^1.3.3",
|
|
84
84
|
"@types/react-dom": "^18.2.7",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"engines": {
|
|
99
99
|
"node": ">=18.0"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "22e96be79f8167a89e1f421edb943ab5662668de"
|
|
102
102
|
}
|