Skip to content

Commit

Permalink
refactor(core): improve dev perf, fine-grained site reloads - part2 (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Mar 21, 2024
1 parent 91f9365 commit 93a09ea
Show file tree
Hide file tree
Showing 10 changed files with 699 additions and 394 deletions.
2 changes: 2 additions & 0 deletions packages/docusaurus-types/src/plugin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ export type InitializedPlugin = Plugin & {

export type LoadedPlugin = InitializedPlugin & {
readonly content: unknown;
readonly globalData: unknown;
readonly routes: RouteConfig[];
};

export type PluginModule<Content = unknown> = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,24 +37,28 @@ exports[`load loads props for site with custom i18n path 1`] = `
{
"content": undefined,
"getClientModules": [Function],
"globalData": undefined,
"injectHtmlTags": [Function],
"name": "docusaurus-bootstrap-plugin",
"options": {
"id": "default",
},
"path": "<PROJECT_ROOT>/packages/docusaurus/src/server/__tests__/__fixtures__/custom-i18n-site",
"routes": [],
"version": {
"type": "synthetic",
},
},
{
"configureWebpack": [Function],
"content": undefined,
"globalData": undefined,
"name": "docusaurus-mdx-fallback-plugin",
"options": {
"id": "default",
},
"path": ".",
"routes": [],
"version": {
"type": "synthetic",
},
Expand Down
Loading

0 comments on commit 93a09ea

Please sign in to comment.