-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
c2c9de9
commit 274c5c1
Showing
6 changed files
with
6,236 additions
and
7,600 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v20 | ||
20 |
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,30 +1,32 @@ | ||
import path from 'path'; | ||
import type {StorybookConfig} from '@storybook/react-webpack5'; | ||
import TsconfigPathsPlugin from 'tsconfig-paths-webpack-plugin'; | ||
|
||
module.exports = { | ||
features: { | ||
interactionsDebugger: true, | ||
const config: StorybookConfig = { | ||
core: { | ||
disableTelemetry: true, | ||
disableWhatsNewNotifications: true, | ||
}, | ||
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'], | ||
framework: { | ||
name: '@storybook/react-webpack5', | ||
options: {}, | ||
}, | ||
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'], | ||
addons: [ | ||
'@storybook/addon-links', | ||
'@storybook/addon-essentials', | ||
'@storybook/addon-interactions', | ||
'storybook-react-intl', | ||
], | ||
core: { | ||
disableTelemetry: true, | ||
builder: 'webpack5', | ||
docs: { | ||
autodocs: 'tag', | ||
}, | ||
framework: '@storybook/react', | ||
|
||
webpackFinal: (config: { resolve: { plugins: TsconfigPathsPlugin[]; }; }) => { | ||
config.resolve.plugins = config.resolve.plugins || []; | ||
config.resolve.plugins.push( | ||
new TsconfigPathsPlugin({ | ||
configFile: path.resolve(__dirname, '../tsconfig.json'), | ||
}) | ||
); | ||
|
||
webpackFinal: async config => { | ||
if (!config.resolve) { | ||
config.resolve = {}; | ||
} | ||
config.resolve.plugins = [new TsconfigPathsPlugin()]; | ||
return config; | ||
}, | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.