@docusaurus/core 4.0.0-canary-6811 → 4.0.0-canary-6814

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.
@@ -15,7 +15,7 @@ async function createStaticDirectoriesCopyPlugin({ props, }) {
15
15
  const CopyPlugin = await (0, bundler_1.getCopyPlugin)({
16
16
  currentBundler: props.currentBundler,
17
17
  });
18
- const { outDir, siteDir, siteConfig: { staticDirectories: staticDirectoriesOption }, } = props;
18
+ const { siteDir, siteConfig: { staticDirectories: staticDirectoriesOption }, } = props;
19
19
  // The staticDirectories option can contain empty directories, or non-existent
20
20
  // directories (e.g. user deleted `static`). Instead of issuing an error, we
21
21
  // just silently filter them out, because user could have never configured it
@@ -31,11 +31,15 @@ async function createStaticDirectoriesCopyPlugin({ props, }) {
31
31
  if (staticDirectories.length === 0) {
32
32
  return undefined;
33
33
  }
34
+ // Webpack's built-in CopyPlugin lets the last pattern win, whereas Rspack
35
+ // and copy-webpack-plugin keep the first. Preserve the directory priority.
36
+ if (props.currentBundler.name === 'webpack') {
37
+ staticDirectories.reverse();
38
+ }
34
39
  return new CopyPlugin({
35
40
  patterns: staticDirectories.map((dir) => ({
36
41
  from: dir,
37
- to: outDir,
38
- toType: 'dir',
42
+ to: '.',
39
43
  info: {
40
44
  // Prevents Webpack from minimizing static files (js/css)
41
45
  // see https://github.com/facebook/docusaurus/pull/10658
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-6811",
4
+ "version": "4.0.0-canary-6814",
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": "4.0.0-canary-6811",
37
- "@docusaurus/bundler": "4.0.0-canary-6811",
38
- "@docusaurus/logger": "4.0.0-canary-6811",
39
- "@docusaurus/mdx-loader": "4.0.0-canary-6811",
40
- "@docusaurus/utils": "4.0.0-canary-6811",
41
- "@docusaurus/utils-common": "4.0.0-canary-6811",
42
- "@docusaurus/utils-validation": "4.0.0-canary-6811",
36
+ "@docusaurus/babel": "4.0.0-canary-6814",
37
+ "@docusaurus/bundler": "4.0.0-canary-6814",
38
+ "@docusaurus/logger": "4.0.0-canary-6814",
39
+ "@docusaurus/mdx-loader": "4.0.0-canary-6814",
40
+ "@docusaurus/utils": "4.0.0-canary-6814",
41
+ "@docusaurus/utils-common": "4.0.0-canary-6814",
42
+ "@docusaurus/utils-validation": "4.0.0-canary-6814",
43
43
  "boxen": "^6.2.1",
44
44
  "chokidar": "^3.6.0",
45
45
  "cli-table3": "^0.6.5",
@@ -70,14 +70,14 @@
70
70
  "tinypool": "^2.1.2",
71
71
  "tslib": "^2.8.1",
72
72
  "update-notifier": "^6.0.2",
73
- "webpack": "^5.110.3",
73
+ "webpack": "^5.111.0",
74
74
  "webpack-bundle-analyzer": "^5.3.2",
75
75
  "webpack-dev-server": "^6.0.0",
76
76
  "webpack-merge": "^6.0.1"
77
77
  },
78
78
  "devDependencies": {
79
- "@docusaurus/module-type-aliases": "4.0.0-canary-6811",
80
- "@docusaurus/types": "4.0.0-canary-6811",
79
+ "@docusaurus/module-type-aliases": "4.0.0-canary-6814",
80
+ "@docusaurus/types": "4.0.0-canary-6814",
81
81
  "@total-typescript/shoehorn": "^0.1.2",
82
82
  "@types/escape-html": "^1.0.4",
83
83
  "@types/history": "^4.7.11",
@@ -91,7 +91,7 @@
91
91
  "tree-node-cli": "^3.0.0"
92
92
  },
93
93
  "peerDependencies": {
94
- "@docusaurus/faster": "4.0.0-canary-6811",
94
+ "@docusaurus/faster": "4.0.0-canary-6814",
95
95
  "@mdx-js/react": "^3.1.1",
96
96
  "react": "^19.3.0",
97
97
  "react-dom": "^19.3.0"
@@ -104,5 +104,5 @@
104
104
  "engines": {
105
105
  "node": ">=24.14"
106
106
  },
107
- "gitHead": "de7f088216e2876ae55a891979e0709587d69367"
107
+ "gitHead": "e5b0835818d00e2416712d11db66bf28ffcdb57e"
108
108
  }