Skip to content

An open-source, self-hosted system for apps built with web technologies.

Build System with production React runtime

zohayrslileh1426e2908b54
diff --git a/package.json b/package.json
index 1572f3f..56df0e5 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "phreshos",
"displayName": "PhreshOS",
- "version": "0.1.46",
+ "version": "0.1.47",
"description": "The PhreshOS server, desktop, and authoritative system runtime.",
"type": "module",
"private": true,
diff --git a/scripts/build.ts b/scripts/build.ts
index c8fd08e..0a01395 100644
--- a/scripts/build.ts
+++ b/scripts/build.ts
@@ -1,7 +1,10 @@
import { externalDependencies } from "@/vite.config"
import { rm, writeFile } from "node:fs/promises"
import packageConfig from "@/package.json"
-import { build } from "vite"
+
+process.env.NODE_ENV = "production"
+
+const { build } = await import("vite")
const dependencies: Partial<typeof packageConfig.dependencies> = {}