-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update storybook monorepo to v7 (major) (#220)
Co-authored-by: Tom Adler <[email protected]>
- Loading branch information
1 parent
8b903d8
commit a7e2807
Showing
9 changed files
with
2,154 additions
and
4,496 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export default process.env.npm_lifecycle_event !== 'storybook' ? {} : { | ||
sourceType: 'unambiguous', | ||
presets: [ | ||
['@babel/preset-env', { targets: { chrome: 100, }, },], | ||
'@babel/preset-typescript', | ||
'@babel/preset-react', | ||
], | ||
}; |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
export default { | ||
framework: { | ||
name: '@storybook/react-webpack5', | ||
options: {}, | ||
}, | ||
stories: ['../src/**/*.stories.tsx'], | ||
addons: [ | ||
'@storybook/addon-actions', | ||
'@storybook/addon-viewport', | ||
'@storybook/addon-controls', | ||
'@storybook/addon-toolbars', | ||
], | ||
async webpackFinal(config) { | ||
const cssRule = config.module.rules.find( | ||
({ test }) => test.toString() === '/\\.css$/', | ||
); | ||
|
||
const cssLoaderOptions = cssRule.use[1].options; | ||
cssLoaderOptions.modules = { namedExport: true }; | ||
|
||
config.resolve.fallback = { | ||
...config.resolve.fallback, | ||
stream: require.resolve('stream-browserify'), | ||
}; | ||
|
||
return config; | ||
}, | ||
}; |
This file was deleted.
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
This file was deleted.
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
Oops, something went wrong.