@docusaurus/core 3.6.1-canary-6141 → 3.6.1-canary-6144

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.
Files changed (2) hide show
  1. package/lib/webpack/base.js +14 -0
  2. package/package.json +11 -11
@@ -89,10 +89,24 @@ async function createBaseConfig({ props, isServer, minify, faster, configureWebp
89
89
  },
90
90
  };
91
91
  }
92
+ function getExperiments() {
93
+ if (props.currentBundler.name === 'rspack') {
94
+ return {
95
+ // This is mostly useful in dev
96
+ // See https://rspack.dev/config/experiments#experimentsincremental
97
+ // Produces warnings in production builds
98
+ // See https://github.com/web-infra-dev/rspack/pull/8311#issuecomment-2476014664
99
+ // @ts-expect-error: Rspack-only
100
+ incremental: !isProd,
101
+ };
102
+ }
103
+ return undefined;
104
+ }
92
105
  return {
93
106
  mode,
94
107
  name,
95
108
  cache: getCache(),
109
+ experiments: getExperiments(),
96
110
  output: {
97
111
  pathinfo: false,
98
112
  path: outDir,
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.6.1-canary-6141",
4
+ "version": "3.6.1-canary-6144",
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.6.1-canary-6141",
37
- "@docusaurus/bundler": "3.6.1-canary-6141",
38
- "@docusaurus/logger": "3.6.1-canary-6141",
39
- "@docusaurus/mdx-loader": "3.6.1-canary-6141",
40
- "@docusaurus/utils": "3.6.1-canary-6141",
41
- "@docusaurus/utils-common": "3.6.1-canary-6141",
42
- "@docusaurus/utils-validation": "3.6.1-canary-6141",
36
+ "@docusaurus/babel": "3.6.1-canary-6144",
37
+ "@docusaurus/bundler": "3.6.1-canary-6144",
38
+ "@docusaurus/logger": "3.6.1-canary-6144",
39
+ "@docusaurus/mdx-loader": "3.6.1-canary-6144",
40
+ "@docusaurus/utils": "3.6.1-canary-6144",
41
+ "@docusaurus/utils-common": "3.6.1-canary-6144",
42
+ "@docusaurus/utils-validation": "3.6.1-canary-6144",
43
43
  "boxen": "^6.2.1",
44
44
  "chalk": "^4.1.2",
45
45
  "chokidar": "^3.5.3",
@@ -78,8 +78,8 @@
78
78
  "webpack-merge": "^6.0.1"
79
79
  },
80
80
  "devDependencies": {
81
- "@docusaurus/module-type-aliases": "3.6.1-canary-6141",
82
- "@docusaurus/types": "3.6.1-canary-6141",
81
+ "@docusaurus/module-type-aliases": "3.6.1-canary-6144",
82
+ "@docusaurus/types": "3.6.1-canary-6144",
83
83
  "@total-typescript/shoehorn": "^0.1.2",
84
84
  "@types/detect-port": "^1.3.3",
85
85
  "@types/react-dom": "^18.2.7",
@@ -100,5 +100,5 @@
100
100
  "engines": {
101
101
  "node": ">=18.0"
102
102
  },
103
- "gitHead": "1cded62199840b5801ba20634092dc3a658eb9f2"
103
+ "gitHead": "7ff03a5ed9d56d161b6dfc7c712fdd88c3d8d95a"
104
104
  }