diff options
| author | Adam <[email protected]> | 2025-12-28 06:41:54 -0600 |
|---|---|---|
| committer | Adam <[email protected]> | 2025-12-28 06:41:59 -0600 |
| commit | 82a876da4de0074ca3d4d6af9a31dc6e8cf20c3a (patch) | |
| tree | e83d71404c832ff59b351540f4a56eecf2b97b36 /packages/app/vite.js | |
| parent | 69a15ae9c1e6737728649cebf3a4009d9ae8edd3 (diff) | |
| download | opencode-82a876da4de0074ca3d4d6af9a31dc6e8cf20c3a.tar.gz opencode-82a876da4de0074ca3d4d6af9a31dc6e8cf20c3a.zip | |
chore: cleanup
Diffstat (limited to 'packages/app/vite.js')
| -rw-r--r-- | packages/app/vite.js | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/packages/app/vite.js b/packages/app/vite.js index 5ab368836..6b8fd6137 100644 --- a/packages/app/vite.js +++ b/packages/app/vite.js @@ -1,23 +1,6 @@ import solidPlugin from "vite-plugin-solid" import tailwindcss from "@tailwindcss/vite" import { fileURLToPath } from "url" -import { generatePreloadScript } from "@opencode-ai/ui/theme" - -/** - * Vite plugin that injects the theme preload script into index.html. - * This ensures the theme is applied before the page renders, avoiding FOUC. - * @type {import("vite").Plugin} - */ -const themePreloadPlugin = { - name: "opencode-desktop:theme-preload", - transformIndexHtml(html) { - const script = generatePreloadScript() - return html.replace( - /<script id="oc-theme-preload-script">\s*\/\* THEME_PRELOAD_SCRIPT \*\/\s*<\/script>/, - `<script id="oc-theme-preload-script">${script}</script>`, - ) - }, -} /** * @type {import("vite").PluginOption} @@ -38,7 +21,6 @@ export default [ } }, }, - themePreloadPlugin, tailwindcss(), solidPlugin(), ] |
