refactor: create @docusaurus/bundler and @docusaurus/babel packages (#10511)

This commit is contained in:
Sébastien Lorber 2024-09-21 16:35:49 +02:00 committed by GitHub
parent fd14d6af55
commit 9ecff801ff
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
65 changed files with 1921 additions and 1588 deletions

View file

@ -8,6 +8,7 @@ import type {DocusaurusConfig} from './config';
import type {CodeTranslations, I18n} from './i18n';
import type {LoadedPlugin, PluginVersionInformation} from './plugin';
import type {PluginRouteConfig} from './routing';
import type {CurrentBundler} from './bundler';
export type DocusaurusContext = {
siteConfig: DocusaurusConfig;
@ -74,6 +75,11 @@ export type LoadContext = {
* Defines the default browser storage behavior for a site
*/
siteStorage: SiteStorage;
/**
* The bundler used to build the site (Webpack or Rspack)
*/
currentBundler: CurrentBundler;
};
export type Props = LoadContext & {