From a5840d54dc48fb8444fcf2f89405312fb474815b Mon Sep 17 00:00:00 2001 From: CoolElectronics Date: Sat, 12 Aug 2023 17:06:11 -0400 Subject: [PATCH] fix single-file bundle --- .gitmodules | 3 + frontend/package.json | 19 ++--- frontend/src/App.svelte | 24 ++++++ pnpm-lock.yaml | 157 ++++++++++++++++++++++++++++++++++++---- vite-plugin-singlefile | 1 + 5 files changed, 181 insertions(+), 23 deletions(-) create mode 160000 vite-plugin-singlefile diff --git a/.gitmodules b/.gitmodules index 77f9f25..1ddbd06 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,6 @@ [submodule "Ultraviolet"] path = Ultraviolet url = https://github.com/titaniumnetwork-dev/Ultraviolet +[submodule "vite-plugin-singlefile"] + path = vite-plugin-singlefile + url = https://github.com/CoolElectronics/vite-plugin-singlefile diff --git a/frontend/package.json b/frontend/package.json index ef6d8be..58c623f 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -13,18 +13,19 @@ "author": "", "license": "ISC", "dependencies": { + "@rollup/browser": "^3.28.0", "@sveltejs/vite-plugin-svelte": "^2.4.5", + "bare-client-custom": "file:../bare-client-custom", + "client": "workspace:*", + "corium": "file:../corium", "firebase": "^10.1.0", + "firebase-config": "workspace:*", + "protocol": "workspace:*", "svelte": "^4.2.0", "svelte-preprocess": "^5.0.4", "typescript": "^5.1.6", "vite": "^4.4.9", - "vite-plugin-singlefile": "^0.13.5", - "vite-plugin-svelte": "^3.0.1", - "bare-client-custom": "file:../bare-client-custom", - "firebase-config": "workspace:*", - "client": "workspace:*", - "protocol": "workspace:*" - }, - "devDependencies": {} -} + "vite-plugin-singlefile": "git://github.com/CoolElectronics/vite-plugin-singlefile.git", + "vite-plugin-svelte": "^3.0.1" + } +} \ No newline at end of file diff --git a/frontend/src/App.svelte b/frontend/src/App.svelte index c2e88dc..cf065f4 100644 --- a/frontend/src/App.svelte +++ b/frontend/src/App.svelte @@ -1,5 +1,6 @@ {#if !import.meta.env.VITE_ADRIFT_DEV} @@ -131,6 +149,12 @@ {/if} +{#if ready} + + +