Skip to content

Commit 93a09ea

Browse files
authored
refactor(core): improve dev perf, fine-grained site reloads - part2 (#9968)
1 parent 91f9365 commit 93a09ea

10 files changed

Lines changed: 699 additions & 394 deletions

File tree

‎packages/docusaurus-types/src/plugin.d.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,8 @@ export type InitializedPlugin = Plugin & {
183183

184184
export type LoadedPlugin = InitializedPlugin & {
185185
readonly content: unknown;
186+
readonly globalData: unknown;
187+
readonly routes: RouteConfig[];
186188
};
187189

188190
export type PluginModule<Content = unknown> = {

‎packages/docusaurus/src/server/__tests__/__snapshots__/site.test.ts.snap‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,28 @@ exports[`load loads props for site with custom i18n path 1`] = `
3737
{
3838
"content": undefined,
3939
"getClientModules": [Function],
40+
"globalData": undefined,
4041
"injectHtmlTags": [Function],
4142
"name": "docusaurus-bootstrap-plugin",
4243
"options": {
4344
"id": "default",
4445
},
4546
"path": "<PROJECT_ROOT>/packages/docusaurus/src/server/__tests__/__fixtures__/custom-i18n-site",
47+
"routes": [],
4648
"version": {
4749
"type": "synthetic",
4850
},
4951
},
5052
{
5153
"configureWebpack": [Function],
5254
"content": undefined,
55+
"globalData": undefined,
5356
"name": "docusaurus-mdx-fallback-plugin",
5457
"options": {
5558
"id": "default",
5659
},
5760
"path": ".",
61+
"routes": [],
5862
"version": {
5963
"type": "synthetic",
6064
},

0 commit comments

Comments
 (0)