-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
43 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,40 @@ | ||
import type {StorybookConfig} from '@storybook/react-vite' | ||
import viteReact from '@vitejs/plugin-react' | ||
import {mergeConfig} from 'vite' | ||
import tsconfigPaths from 'vite-tsconfig-paths' | ||
import type { StorybookConfig } from "@storybook/react-vite"; | ||
import viteReact from "@vitejs/plugin-react"; | ||
import { mergeConfig } from "vite"; | ||
import tsconfigPaths from "vite-tsconfig-paths"; | ||
|
||
const config: StorybookConfig = { | ||
stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)'], | ||
stories: [ | ||
"../stories/**/*.mdx", | ||
"../stories/**/*.stories.@(js|jsx|mjs|ts|tsx)", | ||
], | ||
addons: [ | ||
'@storybook/addon-a11y', | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@storybook/addon-interactions', | ||
'@storybook/addon-storysource', | ||
'@storybook/addon-themes', | ||
'@storybook/addon-mdx-gfm', | ||
"@storybook/addon-a11y", | ||
"@storybook/addon-links", | ||
"@storybook/addon-essentials", | ||
"@storybook/addon-interactions", | ||
"@storybook/addon-storysource", | ||
"@storybook/addon-themes", | ||
"@storybook/addon-mdx-gfm", | ||
], | ||
framework: { | ||
name: '@storybook/react-vite', | ||
name: "@storybook/react-vite", | ||
options: {}, | ||
}, | ||
docs: { | ||
autodocs: 'tag', | ||
autodocs: "tag", | ||
}, | ||
viteFinal(config) { | ||
return mergeConfig(config, { | ||
plugins: [ | ||
viteReact({ | ||
babel: {plugins: [['babel-plugin-react-compiler', {target: '18'}]]}, | ||
babel: { | ||
plugins: [["babel-plugin-react-compiler", { target: "18" }]], | ||
}, | ||
}), | ||
tsconfigPaths(), | ||
], | ||
}) | ||
}); | ||
}, | ||
} | ||
export default config | ||
}; | ||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,7 @@ export default defineConfig({ | |
noImplicitBrowsersList: 'off', | ||
}, | ||
tsconfig: 'tsconfig.dist.json', | ||
babel: {reactCompiler: true}, | ||
// @ts-expect-error - add `target` to `pkg-utils` types | ||
Check failure on line 18 in package.config.ts GitHub Actions / build
|
||
reactCompilerOptions: {target: '18'}, | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters