Skip to content

Commit

Permalink
Vite: Fix framework typing issues with a hack
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Sep 2, 2022
1 parent 79427cd commit d141803
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/frameworks/react-vite/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const viteFinal: StorybookConfig['viteFinal'] = async (config, { presets
} else if (reactDocgen) {
const { reactDocgen } = await import('./plugins/react-docgen');
// Needs to run before the react plugin, so add to the front
plugins.unshift(reactDocgen());
plugins.unshift(reactDocgen() as any);
}

return config;
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/svelte-vite/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function readPackageJson(): Record<string, any> | false {
export const viteFinal: StorybookConfig['viteFinal'] = async (config, { presets }) => {
const { plugins = [] } = config;

plugins.push(svelteDocgen(config));
plugins.push(svelteDocgen(config) as any);

return {
...config,
Expand Down
2 changes: 1 addition & 1 deletion code/frameworks/vue3-vite/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function readPackageJson(): Record<string, any> | false {
export const viteFinal: StorybookConfig['viteFinal'] = async (config, { presets }) => {
const { plugins = [] } = config;

plugins.push(vueDocgen());
plugins.push(vueDocgen() as any);

const updated = {
...config,
Expand Down

0 comments on commit d141803

Please sign in to comment.