text: module.exports = {
    "stories": [
      "../src/**/*.stories.mdx",
      "../src/**/*.stories.@(js|jsx|ts|tsx|svelte)"
    ],
    "addons": [
      "@storybook/addon-links",
      "@storybook/addon-essentials",
      "@storybook/addon-svelte-csf",
      {
        name: '@storybook/addon-postcss',
        options: {
          postcssLoaderOptions: {
            implementation: require('postcss'),
          },
        },
      }
    ],
    "framework": "@storybook/svelte",
    "svelteOptions": {
      "preprocess": require("svelte-preprocess")()
    },
    // "viteFinal": async (config) => {
    //   const alias = (await import("../svelte.config.js")).default.kit.vite.resolve.alias;
  
    //   return {
    //     ...config,
    //     resolve: {
    //       ...config.resolve,
    //       alias: {
    //         ...config.resolve.alias,
    //         ...alias,
    //       }
    //     }
    //   };
    // }
  }