27 lines
597 B
JavaScript
27 lines
597 B
JavaScript
const path = require("path")
|
|
|
|
module.exports = {
|
|
stories: ["../stories/**/*.stories.mdx", "../stories/**/*.stories.tsx"],
|
|
addons: ["@storybook/addon-links", "@storybook/addon-essentials"],
|
|
framework: "@storybook/react",
|
|
core: {
|
|
builder: "@storybook/builder-vite",
|
|
},
|
|
async viteFinal(config, { configType }) {
|
|
// customize the Vite config here
|
|
return {
|
|
...config,
|
|
resolve: {
|
|
alias: [
|
|
{
|
|
find: "@developomp-site/components-react",
|
|
replacement: path.resolve(
|
|
__dirname,
|
|
"../../../packages/components-react/"
|
|
),
|
|
},
|
|
],
|
|
},
|
|
}
|
|
},
|
|
}
|