2024-08-21 15:14:40 +00:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import react from "@vitejs/plugin-react";
|
2024-11-06 18:56:37 +00:00
|
|
|
import svgr from "vite-plugin-svgr";
|
2024-08-21 15:14:40 +00:00
|
|
|
|
|
|
|
// 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,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// ...
|
|
|
|
})],
|
2024-08-21 15:14:40 +00:00
|
|
|
worker: {
|
|
|
|
rollupOptions: {
|
2024-08-30 14:10:17 +00:00
|
|
|
external: ["@codex-storage/sdk-js"],
|
2024-08-21 15:14:40 +00:00
|
|
|
output: {
|
|
|
|
globals: {
|
2024-08-30 14:10:17 +00:00
|
|
|
"@codex-storage/sdk-js": "codex-sdk-js",
|
2024-08-21 15:14:40 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
});
|