-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add src import in storybook, TS and rollup
- Loading branch information
1 parent
04cdeff
commit d6c6b6d
Showing
60 changed files
with
55,038 additions
and
54,387 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,8 +1,19 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
stories: ['../stories/**/*.stories.@(ts|tsx|js|jsx)'], | ||
addons: ['@storybook/addon-links', '@storybook/addon-essentials'], | ||
// https://storybook.js.org/docs/react/configure/typescript#mainjs-configuration | ||
typescript: { | ||
check: true, // type-check stories during Storybook build | ||
}, | ||
webpackFinal: (config) => { | ||
config.resolve.alias = { | ||
...config.resolve.alias, | ||
src: path.resolve(__dirname, '../src'), | ||
reactify: path.resolve(__dirname, '../src/reactify'), | ||
}; | ||
|
||
return config; | ||
}, | ||
}; |
Oops, something went wrong.