From aaac3ea4619cf9b742e24b17bbc0197cdeab1cca Mon Sep 17 00:00:00 2001 From: Puyodead1 Date: Wed, 16 Oct 2024 14:09:14 -0400 Subject: [PATCH] stuff --- package.json | 4 ++-- pnpm-lock.yaml | 6 +++--- vite.config.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 7095f30f..43cfdf7d 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "@types/react-measure": "^2.0.12", "@types/react-portal": "^4.0.7", "@uidotdev/usehooks": "^2.4.1", + "@vitejs/plugin-react-swc": "^3.7.1", "classnames": "^2.5.1", "csstype": "^3.1.3", "dayjs": "^1.11.13", @@ -88,7 +89,6 @@ "@typescript-eslint/eslint-plugin": "^8.7.0", "@typescript-eslint/parser": "^8.7.0", "@vitejs/plugin-react": "^4.3.2", - "@vitejs/plugin-react-swc": "^3.7.1", "cross-env": "^7.0.3", "eslint": "^8.57.1", "eslint-plugin-react-hooks": "^4.6.2", @@ -110,7 +110,7 @@ "url": "git+https://github.com/spacebarchat/client.git" }, "scripts": { - "dev": "vite --open", + "dev": "cross-env VITE_ENV_DEV=true vite --open", "preview": "vite preview", "analyze": "source-map-explorer 'dist/asset/*.js'", "build": "tsc && vite build", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8981ad0a..25174f35 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -98,6 +98,9 @@ importers: '@uidotdev/usehooks': specifier: ^2.4.1 version: 2.4.1(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + '@vitejs/plugin-react-swc': + specifier: ^3.7.1 + version: 3.7.1(vite@5.4.8(@types/node@22.7.5)(terser@5.34.1)) classnames: specifier: ^2.5.1 version: 2.5.1 @@ -255,9 +258,6 @@ importers: '@vitejs/plugin-react': specifier: ^4.3.2 version: 4.3.2(vite@5.4.8(@types/node@22.7.5)(terser@5.34.1)) - '@vitejs/plugin-react-swc': - specifier: ^3.7.1 - version: 3.7.1(vite@5.4.8(@types/node@22.7.5)(terser@5.34.1)) cross-env: specifier: ^7.0.3 version: 7.0.3 diff --git a/vite.config.ts b/vite.config.ts index 52ec51ce..f6eaf037 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -109,7 +109,7 @@ export default defineConfig({ host: host, port: 1430, } - : false, + : undefined, // Tauri expects a fixed port, fail if that port is not available strictPort: true, },