Skip to content

Commit

Permalink
try updating vite to latest (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImUrX authored Jan 5, 2023
1 parent caac029 commit 3c5dc4d
Show file tree
Hide file tree
Showing 3 changed files with 1,456 additions and 9,143 deletions.
5 changes: 2 additions & 3 deletions gui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@fontsource/poppins": "^4.5.8",
"@formatjs/intl-localematcher": "^0.2.32",
"@tauri-apps/api": "^1.2.0",
"@vitejs/plugin-react": "^2.2.0",
"@vitejs/plugin-react": "^3.0.0",
"browserslist": "^4.18.1",
"camelcase": "^6.2.1",
"classnames": "^2.3.1",
Expand Down Expand Up @@ -66,7 +66,6 @@
]
},
"devDependencies": {
"@originjs/vite-plugin-commonjs": "^1.0.3",
"@tailwindcss/forms": "^0.5.0",
"@tauri-apps/cli": "^1.2.2",
"@types/react": "18.0.25",
Expand All @@ -89,6 +88,6 @@
"prettier": "^2.7.1",
"pretty-quick": "^3.1.3",
"tailwindcss": "^3.0.23",
"vite": "^3.2.4"
"vite": "^4.0.3"
}
}
4 changes: 1 addition & 3 deletions gui/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { esbuildCommonjs, viteCommonjs } from '@originjs/vite-plugin-commonjs';
import react from '@vitejs/plugin-react';
import { defineConfig, PluginOption } from 'vite';
import { execSync } from 'child_process';
Expand Down Expand Up @@ -39,7 +38,7 @@ export default defineConfig({
__VERSION_TAG__: JSON.stringify(versionTag),
__GIT_CLEAN__: gitClean,
},
plugins: [viteCommonjs(), react(), i18nHotReload()],
plugins: [react(), i18nHotReload()],
build: {
target: 'es2020',
emptyOutDir: true,
Expand All @@ -50,7 +49,6 @@ export default defineConfig({
optimizeDeps: {
esbuildOptions: {
target: 'es2020',
plugins: [esbuildCommonjs(['solarxr-protocol'])],
},
needsInterop: ['solarxr-protocol'],
include: ['solarxr-protocol'],
Expand Down
Loading

0 comments on commit 3c5dc4d

Please sign in to comment.