Skip to content

Commit

Permalink
chore: sync with main
Browse files Browse the repository at this point in the history
  • Loading branch information
entrolEC committed Mar 7, 2024
1 parent 1b599c1 commit 6a5ea57
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { StorybookConfig } from "@storybook/nextjs";

import { dirname, join } from "path";
import path, { dirname, join } from "path";

/**
* This function is used to resolve the absolute path of a package.
Expand Down Expand Up @@ -34,5 +34,15 @@ const config: StorybookConfig = {
docs: {
autodocs: "tag",
},

webpackFinal: async config => {
if (config.resolve) {
config.resolve.alias = {
...config.resolve.alias,
"@": path.resolve(__dirname, "../src"),
};
}
return config;
},
};
export default config;

0 comments on commit 6a5ea57

Please sign in to comment.