Skip to content

Commit

Permalink
storybook-html: fix breaking changes resulting from migration
Browse files Browse the repository at this point in the history
  • Loading branch information
uqmchu committed Aug 17, 2020
1 parent b1fbf9f commit 5b30cdd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/storybook-html/.storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
stories: [
'../src/**/*.(stories|story).(js|mdx)'
'../src/**/*.@(stories|story).@(js|mdx)'
],
addons: [
'@storybook/addon-docs',
Expand Down
4 changes: 4 additions & 0 deletions packages/storybook-html/.storybook/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ module.exports = async ({ config, mode }) => {
]
}
);

// Temporary workaround: https://github.com/storybookjs/storybook/issues/11255#issuecomment-673899817
// Due to breaking change during Storybook v5.3 to v6.0 migration
config.resolve.alias['core-js/modules'] = path.resolve(__dirname, '..', 'node_modules/core-js/modules');

// Return the altered config
return config;
Expand Down
1 change: 1 addition & 0 deletions packages/storybook-html/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@storybook/addon-viewport": "^6.0.10",
"@storybook/html": "^6.0.10",
"babel-loader": "^8.0.6",
"core-js": "^3.0.1",
"fibers": "^4.0.2",
"sass": "^1.26.5",
"sass-loader": "^8.0.2",
Expand Down

0 comments on commit 5b30cdd

Please sign in to comment.