forked from baron/baron-sso
fix: align local Ory cookie domain rendering
This commit is contained in:
25
orgfront/vite.org-context-chart.config.ts
Normal file
25
orgfront/vite.org-context-chart.config.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { fileURLToPath } from "node:url";
|
||||
import { defineConfig } from "vite";
|
||||
|
||||
const isMinifiedBuild = process.env.ORG_CONTEXT_CHART_MINIFY === "true";
|
||||
const fileSuffix = isMinifiedBuild ? ".min" : "";
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
emptyOutDir: !isMinifiedBuild,
|
||||
lib: {
|
||||
entry: fileURLToPath(
|
||||
new URL("./src/sdk/org-context-chart/index.ts", import.meta.url),
|
||||
),
|
||||
fileName: (format) =>
|
||||
format === "es"
|
||||
? `baron-org-context-chart${fileSuffix}.js`
|
||||
: `baron-org-context-chart${fileSuffix}.umd.cjs`,
|
||||
formats: ["es", "umd"],
|
||||
name: "BaronOrgContextChart",
|
||||
},
|
||||
minify: isMinifiedBuild,
|
||||
outDir: "dist/org-context-chart",
|
||||
sourcemap: true,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user