@docusaurus/core 4.0.0-canary-6975 → 4.0.0-canary-6976

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 +4 -1
  2. package/package.json +12 -12
@@ -70,9 +70,12 @@ async function createBaseConfig({ props, isServer, minify, configureWebpackUtils
70
70
  // Because Webpack does not evict the cache on alias/swizzle changes,
71
71
  // See https://github.com/webpack/webpack/issues/13627
72
72
  const themeAliasesHash = (0, utils_1.md5Hash)(JSON.stringify(themeAliases));
73
+ // Loader and minimizer options are not part of the cache key
74
+ // Changing the Browserslist config must evict the cache
75
+ const browserslistHash = (0, utils_1.md5Hash)(JSON.stringify((0, bundler_1.getBrowserslistQueries)()));
73
76
  // Asset module parser options are not part of the cache key
74
77
  // Changing the asset inline max size must evict the cache
75
- return `${siteMetadata.docusaurusVersion}-${themeAliasesHash}-${utils_1.ASSET_INLINE_MAX_SIZE}`;
78
+ return `${siteMetadata.docusaurusVersion}-${themeAliasesHash}-${browserslistHash}-${utils_1.ASSET_INLINE_MAX_SIZE}`;
76
79
  }
77
80
  // When one of those modules/dependencies change (including transitive
78
81
  // deps), cache is invalidated
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-6975",
4
+ "version": "4.0.0-canary-6976",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -27,15 +27,15 @@
27
27
  "url": "https://github.com/facebook/docusaurus/issues"
28
28
  },
29
29
  "dependencies": {
30
- "@docusaurus/babel": "4.0.0-canary-6975",
31
- "@docusaurus/bundler": "4.0.0-canary-6975",
32
- "@docusaurus/fs": "4.0.0-canary-6975",
33
- "@docusaurus/glob": "4.0.0-canary-6975",
34
- "@docusaurus/logger": "4.0.0-canary-6975",
35
- "@docusaurus/mdx-loader": "4.0.0-canary-6975",
36
- "@docusaurus/utils": "4.0.0-canary-6975",
37
- "@docusaurus/utils-common": "4.0.0-canary-6975",
38
- "@docusaurus/utils-validation": "4.0.0-canary-6975",
30
+ "@docusaurus/babel": "4.0.0-canary-6976",
31
+ "@docusaurus/bundler": "4.0.0-canary-6976",
32
+ "@docusaurus/fs": "4.0.0-canary-6976",
33
+ "@docusaurus/glob": "4.0.0-canary-6976",
34
+ "@docusaurus/logger": "4.0.0-canary-6976",
35
+ "@docusaurus/mdx-loader": "4.0.0-canary-6976",
36
+ "@docusaurus/utils": "4.0.0-canary-6976",
37
+ "@docusaurus/utils-common": "4.0.0-canary-6976",
38
+ "@docusaurus/utils-validation": "4.0.0-canary-6976",
39
39
  "@rspack/core": "^2.2.3",
40
40
  "@rspack/dev-server": "^2.2.1",
41
41
  "boxen": "^9.0.0",
@@ -68,8 +68,8 @@
68
68
  "webpack-merge": "^6.0.1"
69
69
  },
70
70
  "devDependencies": {
71
- "@docusaurus/module-type-aliases": "4.0.0-canary-6975",
72
- "@docusaurus/types": "4.0.0-canary-6975",
71
+ "@docusaurus/module-type-aliases": "4.0.0-canary-6976",
72
+ "@docusaurus/types": "4.0.0-canary-6976",
73
73
  "@total-typescript/shoehorn": "^0.1.2",
74
74
  "@types/escape-html": "^1.0.4",
75
75
  "@types/history": "^4.7.11",