Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Upgrade to storybook 6: the config part
Browse files Browse the repository at this point in the history
Related issues:
- Removed @babel/plugin-proposal-class-properties plugin. Not sure this is the right thing to do, I'll try to find another workaround
storybookjs/storybook#12093
- Added some core-js magic things in the storybook webpack configuration.
storybookjs/storybook#11255 (comment)
  • Loading branch information
Michael Cellier committed Nov 5, 2020
1 parent f0139ce commit b0b13f3
Show file tree
Hide file tree
Showing 4 changed files with 7,869 additions and 4,090 deletions.
1 change: 0 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
],
"plugins": [
"@babel/plugin-transform-react-jsx",
"@babel/plugin-proposal-class-properties",
[
"module-resolver",
{
Expand Down
6 changes: 5 additions & 1 deletion .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,14 @@ module.exports = {
},
],
})

config.resolve.extensions.push('.ts', '.tsx')
// https://github.com/storybookjs/storybook/issues/11255#issuecomment-713083086
config.resolve.alias['core-js/modules'] = '@storybook/core/node_modules/core-js/modules'
config.resolve.alias['core-js/features'] = '@storybook/core/node_modules/core-js/features'
return config
},
stories: ['../src/**/story.(tsx|mdx)', '../src/**/*.story.(tsx|mdx)'],
stories: ['../src/**/*.story.mdx'],
addons: [
'@storybook/addon-knobs',
'@storybook/addon-actions',
Expand Down
Loading

0 comments on commit b0b13f3

Please sign in to comment.