Skip to content

Commit

Permalink
fix configureWebpack type
Browse files Browse the repository at this point in the history
  • Loading branch information
slorber committed Jan 6, 2025
1 parent 57ebac6 commit bfb9e1b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/docusaurus-plugin-svgr/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export default function pluginSVGR(
name: 'docusaurus-plugin-svgr',
configureWebpack: (config, isServer) => {
enhanceConfig(config, {isServer, svgrConfig: options.svgrConfig});
return {};
},
};
}
Expand Down
2 changes: 1 addition & 1 deletion packages/docusaurus-types/src/plugin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ export type Plugin<Content = unknown> = {
isServer: boolean,
configureWebpackUtils: ConfigureWebpackUtils,
content: Content,
) => ConfigureWebpackResult;
) => ConfigureWebpackResult | void;
configurePostCss?: (options: PostCssOptions) => PostCssOptions;
getThemePath?: () => string;
getTypeScriptThemePath?: () => string;
Expand Down

0 comments on commit bfb9e1b

Please sign in to comment.