Skip to content

Commit 216eb3f

Browse files
Configure Storybook projects manually
1 parent 630c48e commit 216eb3f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.storybook/main.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ const config: StorybookConfig = {
1616

1717
viteFinal(config) {
1818
return mergeConfig(config, {
19-
plugins: [tsConfigPaths()],
2019
css: {
2120
preprocessorOptions: {
2221
scss: {
@@ -28,6 +27,11 @@ const config: StorybookConfig = {
2827
esbuild: {
2928
jsx: 'automatic',
3029
},
30+
plugins: [
31+
tsConfigPaths({
32+
projects: ['./tsconfig.dev.json', './tsconfig.build.json'],
33+
}),
34+
],
3135
});
3236
},
3337
};

0 commit comments

Comments
 (0)