mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-09 23:27:28 +02:00
refactor: create @docusaurus/bundler
and @docusaurus/babel
packages (#10511)
This commit is contained in:
parent
fd14d6af55
commit
9ecff801ff
65 changed files with 1921 additions and 1588 deletions
6
packages/docusaurus-types/src/context.d.ts
vendored
6
packages/docusaurus-types/src/context.d.ts
vendored
|
@ -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 & {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue