Browse Source

Pass process.platform through with Vite

cte 11 months ago
parent
commit
577ebcd8fc
1 changed files with 3 additions and 0 deletions
  1. 3 0
      webview-ui/vite.config.ts

+ 3 - 0
webview-ui/vite.config.ts

@@ -33,4 +33,7 @@ export default defineConfig({
 			allowedHeaders: "*",
 		},
 	},
+	define: {
+		"process.platform": JSON.stringify(process.platform),
+	},
 })