Skip to content

Commit

Permalink
Try to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Nov 4, 2024
1 parent 0395ef8 commit ff61894
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 1 addition & 0 deletions code/core/src/common/utils/framework-to-renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const frameworkToRenderer: Record<
html: 'html',
preact: 'preact',
'react-native': 'react-native',
'react-native-web-vite': 'react',
react: 'react',
server: 'server',
svelte: 'svelte',
Expand Down
8 changes: 3 additions & 5 deletions code/frameworks/react-native-web-vite/src/preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { hasVitePlugins } from '@storybook/builder-vite';

import type { BabelOptions, Options as ReactOptions } from '@vitejs/plugin-react';
import react from '@vitejs/plugin-react';
import type { Plugin } from 'vite';
import type { PluginOption } from 'vite';

import type { FrameworkOptions, StorybookConfig } from './types';

function reactNativeWeb(
reactOptions: Omit<ReactOptions, 'babel'> & { babel?: BabelOptions }
): Plugin {
const plugin: Plugin = {
): PluginOption {
return {
name: 'vite:react-native-web',
enforce: 'pre',
config(_userConfig, env) {
Expand Down Expand Up @@ -67,8 +67,6 @@ function reactNativeWeb(
};
},
};

return plugin;
}

export const viteFinal: StorybookConfig['viteFinal'] = async (config, options) => {
Expand Down

0 comments on commit ff61894

Please sign in to comment.