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 6f9594f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions code/core/src/cli/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ export const frameworkToDefaultBuilder: Record<
'preact-vite': CoreBuilder.Vite,
'preact-webpack5': CoreBuilder.Webpack5,
qwik: CoreBuilder.Vite,
'react-native-web-vite': CoreBuilder.Vite,
'react-vite': CoreBuilder.Vite,
'react-webpack5': CoreBuilder.Webpack5,
'server-webpack5': CoreBuilder.Webpack5,
Expand Down
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 6f9594f

Please sign in to comment.