Skip to content

Commit

Permalink
Add React plugin to build
Browse files Browse the repository at this point in the history
  • Loading branch information
gabro committed May 3, 2024
1 parent 09919c6 commit 6504228
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/bento-design-system/.storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
// @ts-expect-error
import * as path from "path";
import type { StorybookConfig } from "@storybook/react-vite";
import { mergeConfig } from "vite";
import react from "@vitejs/plugin-react";

const config: StorybookConfig = {
stories: [{ directory: "../stories", files: "**/*.stories.*" }],
Expand All @@ -13,7 +12,7 @@ const config: StorybookConfig = {
},
viteFinal: (config) => {
return mergeConfig(config, {
plugins: [vanillaExtractPlugin()],
plugins: [react(), vanillaExtractPlugin()],
});
},
};
Expand Down

0 comments on commit 6504228

Please sign in to comment.