const {
  mergeConfig
} = require('vite');

const {
  resolve
} = require('path');
const svgLoader = require('vite-svg-loader');
module.exports = {
  "stories": ["../src/stories/**/*.stories.mdx", "../src/stories/**/*.stories.js"],
  "addons": ["@storybook/addon-links", "@storybook/addon-essentials", "@storybook/addon-interactions"],
  "framework": {
    name: "@storybook/vue3-vite",
    options: {}
  },
  "core": {},
  async viteFinal(config) {
    return mergeConfig(config, {
      resolve: {
        alias: {
          '@': resolve(__dirname, './../src')
        }
      },
      plugins: [svgLoader()]
    });
  },
  "features": {
    "storyStoreV7": true
  },
  staticDirs: ['../src/assets'],
  docsPage: {
    docs: "automatic"
  }
};