blob: 26155133f887442c39a2e35c079f9fc57cb65b1a [file] [log] [blame]
// .storybook/main.js
const path = require('path');
module.exports = {
addons: ['@storybook/addon-essentials'],
core: {
builder: 'webpack5',
},
features: {
storyStoreV7: true,
},
framework: '@storybook/angular',
stories: ['../src/app/**/*.stories.@(ts|mdx)'],
typescript: {
check: false,
checkOptions: {},
},
webpackFinal: async (config, { configType }) => {
// Make whatever fine-grained changes you need
// Return the altered config
return {
...config,
resolve: {
...config.resolve,
modules: [path.resolve('./src'), ...config.resolve.modules],
fallback: {
timers: false,
tty: false,
os: false,
http: false,
https: false,
zlib: false,
util: false,
...config.resolve.fallback,
},
},
};
},
};