Skip to content

Commit

Permalink
feat: make storybook 7 work
Browse files Browse the repository at this point in the history
  • Loading branch information
florianstancioiu authored and basilgood committed Aug 16, 2024
1 parent b59eedb commit 9804e7a
Show file tree
Hide file tree
Showing 5 changed files with 10,423 additions and 4,032 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
node_modules/
coverage/
/storybook-static/
yarn-error.log
debug.log
.eslintcache
Expand Down
24 changes: 22 additions & 2 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
module.exports = {
stories: ['../stories/**/*.stories.{js,mdx}'],
import esbuild from 'rollup-plugin-esbuild';

/** @type { import('@web/storybook-framework-web-components').StorybookConfig } */
const config = {
stories: ['../stories/**/*.stories.{js,ts,mdx}'],
addons: ['@storybook/addon-essentials', '@storybook/addon-links'],
framework: {
name: '@web/storybook-framework-web-components',
},
docs: {
autodocs: true,
},
/* Try to make the build parse TS files */
async rollupFinal(config) {
// add extra configuration for rollup
// e.g. a new plugin
config.plugins.push(esbuild({}));

return config;
},
};

export default config;
Loading

0 comments on commit 9804e7a

Please sign in to comment.