Skip to content

Commit

Permalink
fix: remove storybook config change
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-a-young committed Nov 26, 2024
1 parent 3c915fd commit 455d0a2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 3 additions & 5 deletions apps/element-storybook/.storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,9 @@ const config: StorybookConfig = {
reactDocgen: 'react-docgen-typescript',
},

async viteFinal(config) {
// console.log(config);
if (config.resolve) config.resolve.mainFields = [];
return config;
},
// async viteFinal(config) {
// return config;
// },

staticDirs: ['../../../static'],
features: { storyStoreV7: false, legacyMdx1: true },
Expand Down
3 changes: 2 additions & 1 deletion apps/element-storybook/.storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react';
import { themes } from '@storybook/theming';
import { Preview } from '@storybook/react';
import { Title, Subtitle, Description, Primary, Controls, Stories, useOf } from '@storybook/blocks';
Expand Down Expand Up @@ -37,7 +38,7 @@ const preview: Preview = {
theme: themes.light,
source: {
excludeDecorators: true,
type: 'code'
type: 'code',
},
page: () => {
// https://github.com/storybookjs/storybook/blob/next/code/ui/blocks/src/blocks/DocsPage.tsx
Expand Down

0 comments on commit 455d0a2

Please sign in to comment.