mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 03:11:05 +08:00
20 lines
541 B
Markdown
20 lines
541 B
Markdown
```js filename=".storybook/main.js" renderer="preact" language="js"
|
|
export default {
|
|
// ...
|
|
// framework: '@storybook/preact-webpack5', 👈 Remove this
|
|
framework: '@storybook/preact-vite', // 👈 Add this
|
|
};
|
|
```
|
|
|
|
```ts filename=".storybook/main.ts" renderer="preact" language="ts"
|
|
import { StorybookConfig } from '@storybook/preact-vite';
|
|
|
|
const config: StorybookConfig = {
|
|
// ...
|
|
// framework: '@storybook/preact-webpack5', 👈 Remove this
|
|
framework: '@storybook/preact-vite', // 👈 Add this
|
|
};
|
|
|
|
export default config;
|
|
```
|