18 lines
387 B
TypeScript
18 lines
387 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react({ jsxRuntime: "automatic" })],
|
|
worker: {
|
|
rollupOptions: {
|
|
external: ["@codex-storage/sdk-js"],
|
|
output: {
|
|
globals: {
|
|
"@codex-storage/sdk-js": "codex-sdk-js",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
});
|