@docusaurus/types 0.0.0-6081 → 0.0.0-6083

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/package.json +2 -2
  2. package/src/context.d.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docusaurus/types",
3
- "version": "0.0.0-6081",
3
+ "version": "0.0.0-6083",
4
4
  "description": "Common types for Docusaurus packages.",
5
5
  "types": "./src/index.d.ts",
6
6
  "publishConfig": {
@@ -27,5 +27,5 @@
27
27
  "react": "^18.0.0",
28
28
  "react-dom": "^18.0.0"
29
29
  },
30
- "gitHead": "610c0dfb7990452f8e0eeb0c8bea792d0d0c0a0c"
30
+ "gitHead": "474967f4f49da90a1fca9f9034b0c054c5e29c7f"
31
31
  }
package/src/context.d.ts CHANGED
@@ -8,6 +8,7 @@ import type {DocusaurusConfig} from './config';
8
8
  import type {CodeTranslations, I18n} from './i18n';
9
9
  import type {LoadedPlugin, PluginVersionInformation} from './plugin';
10
10
  import type {PluginRouteConfig} from './routing';
11
+ import type {CurrentBundler} from './bundler';
11
12
 
12
13
  export type DocusaurusContext = {
13
14
  siteConfig: DocusaurusConfig;
@@ -74,6 +75,11 @@ export type LoadContext = {
74
75
  * Defines the default browser storage behavior for a site
75
76
  */
76
77
  siteStorage: SiteStorage;
78
+
79
+ /**
80
+ * The bundler used to build the site (Webpack or Rspack)
81
+ */
82
+ currentBundler: CurrentBundler;
77
83
  };
78
84
 
79
85
  export type Props = LoadContext & {