codex-marketplace-ui-compon.../vite-storybook.config.ts

27 lines
588 B
TypeScript
Raw Normal View History

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
2024-11-06 18:56:37 +00:00
import svgr from "vite-plugin-svgr";
// https://vitejs.dev/config/
export default defineConfig({
2024-11-06 18:56:37 +00:00
plugins: [react({ jsxRuntime: "automatic" }), svgr({
svgrOptions: {
plugins: ["@svgr/plugin-svgo", "@svgr/plugin-jsx"],
svgoConfig: {
floatPrecision: 2,
},
},
// ...
})],
worker: {
rollupOptions: {
external: ["@codex-storage/sdk-js"],
output: {
globals: {
"@codex-storage/sdk-js": "codex-sdk-js",
},
},
},
},
});