These files will be used to define the custom design tokens per components. They are automatically aggregated by the packages/react/cunningham.ts file, this is why handling typescript config file was important.
32 lines
684 B
JavaScript
32 lines
684 B
JavaScript
const viteTsconfig = require('vite-tsconfig-paths');
|
|
const tsconfigPaths = viteTsconfig.default;
|
|
|
|
const { mergeConfig } = require('vite');
|
|
|
|
module.exports = {
|
|
"stories": [
|
|
"../src/**/*.stories.mdx",
|
|
"../src/**/*.stories.@(js|jsx|ts|tsx)"
|
|
],
|
|
"addons": [
|
|
"@storybook/addon-links",
|
|
"@storybook/addon-essentials",
|
|
"@storybook/addon-interactions",
|
|
'@storybook/preset-scss'
|
|
],
|
|
"framework": "@storybook/react",
|
|
"core": {
|
|
"builder": "@storybook/builder-vite"
|
|
},
|
|
staticDirs: [
|
|
'dist',
|
|
],
|
|
"features": {
|
|
"storyStoreV7": true
|
|
},
|
|
async viteFinal(config) {
|
|
return mergeConfig(config, {
|
|
plugins: [tsconfigPaths()],
|
|
});
|
|
},
|
|
} |