diff options
Diffstat (limited to 'subprojects')
-rw-r--r-- | subprojects/frontend/package.json | 6 | ||||
-rw-r--r-- | subprojects/frontend/vite.config.ts | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/subprojects/frontend/package.json b/subprojects/frontend/package.json index 36476024..db5d3f68 100644 --- a/subprojects/frontend/package.json +++ b/subprojects/frontend/package.json | |||
@@ -40,6 +40,7 @@ | |||
40 | "@material-icons/svg": "^1.0.33", | 40 | "@material-icons/svg": "^1.0.33", |
41 | "@mui/icons-material": "5.10.16", | 41 | "@mui/icons-material": "5.10.16", |
42 | "@mui/material": "5.10.17", | 42 | "@mui/material": "5.10.17", |
43 | "@vitejs/plugin-react-swc": "^3.0.0", | ||
43 | "ansi-styles": "^6.2.1", | 44 | "ansi-styles": "^6.2.1", |
44 | "escape-string-regexp": "^5.0.0", | 45 | "escape-string-regexp": "^5.0.0", |
45 | "lodash-es": "^4.17.21", | 46 | "lodash-es": "^4.17.21", |
@@ -62,13 +63,12 @@ | |||
62 | "@types/html-minifier-terser": "^7.0.0", | 63 | "@types/html-minifier-terser": "^7.0.0", |
63 | "@types/lodash-es": "^4.17.6", | 64 | "@types/lodash-es": "^4.17.6", |
64 | "@types/ms": "^0.7.31", | 65 | "@types/ms": "^0.7.31", |
65 | "@types/node": "^18.11.12", | 66 | "@types/node": "^18.11.13", |
66 | "@types/prettier": "^2.7.1", | 67 | "@types/prettier": "^2.7.1", |
67 | "@types/react": "^18.0.26", | 68 | "@types/react": "^18.0.26", |
68 | "@types/react-dom": "^18.0.9", | 69 | "@types/react-dom": "^18.0.9", |
69 | "@typescript-eslint/eslint-plugin": "^5.46.0", | 70 | "@typescript-eslint/eslint-plugin": "^5.46.0", |
70 | "@typescript-eslint/parser": "^5.46.0", | 71 | "@typescript-eslint/parser": "^5.46.0", |
71 | "@vitejs/plugin-react": "^2.2.0", | ||
72 | "@xstate/cli": "^0.4.0", | 72 | "@xstate/cli": "^0.4.0", |
73 | "cross-env": "^7.0.3", | 73 | "cross-env": "^7.0.3", |
74 | "eslint": "^8.29.0", | 74 | "eslint": "^8.29.0", |
@@ -85,7 +85,7 @@ | |||
85 | "html-minifier-terser": "^7.1.0", | 85 | "html-minifier-terser": "^7.1.0", |
86 | "prettier": "^2.8.1", | 86 | "prettier": "^2.8.1", |
87 | "typescript": "4.9.3", | 87 | "typescript": "4.9.3", |
88 | "vite": "^3.2.5", | 88 | "vite": "^4.0.0", |
89 | "vite-plugin-inject-preload": "^1.1.1", | 89 | "vite-plugin-inject-preload": "^1.1.1", |
90 | "vite-plugin-pwa": "^0.13.3", | 90 | "vite-plugin-pwa": "^0.13.3", |
91 | "workbox-window": "^6.5.4" | 91 | "workbox-window": "^6.5.4" |
diff --git a/subprojects/frontend/vite.config.ts b/subprojects/frontend/vite.config.ts index 2c810912..08b3db0c 100644 --- a/subprojects/frontend/vite.config.ts +++ b/subprojects/frontend/vite.config.ts | |||
@@ -4,9 +4,9 @@ import path from 'node:path'; | |||
4 | import { fileURLToPath } from 'node:url'; | 4 | import { fileURLToPath } from 'node:url'; |
5 | 5 | ||
6 | import { lezer } from '@lezer/generator/rollup'; | 6 | import { lezer } from '@lezer/generator/rollup'; |
7 | import react from '@vitejs/plugin-react'; | 7 | import react from '@vitejs/plugin-react-swc'; |
8 | import { minify } from 'html-minifier-terser'; | 8 | import { minify } from 'html-minifier-terser'; |
9 | import { defineConfig, PluginOption } from 'vite'; | 9 | import { defineConfig, type PluginOption } from 'vite'; |
10 | import injectPreload from 'vite-plugin-inject-preload'; | 10 | import injectPreload from 'vite-plugin-inject-preload'; |
11 | import { VitePWA } from 'vite-plugin-pwa'; | 11 | import { VitePWA } from 'vite-plugin-pwa'; |
12 | 12 | ||
@@ -104,8 +104,8 @@ export default defineConfig({ | |||
104 | workbox: { | 104 | workbox: { |
105 | globPatterns: [ | 105 | globPatterns: [ |
106 | '**/*.{css,html,js}', | 106 | '**/*.{css,html,js}', |
107 | 'inter-latin-variable-wghtOnly-normal.*.woff2', | 107 | 'inter-latin-variable-wghtOnly-normal-*.woff2', |
108 | 'jetbrains-mono-latin-variable-wghtOnly-{normal,italic}.*.woff2', | 108 | 'jetbrains-mono-latin-variable-wghtOnly-{normal,italic}-*.woff2', |
109 | ], | 109 | ], |
110 | dontCacheBustURLsMatching: /\.(?:css|js|woff2?)$/, | 110 | dontCacheBustURLsMatching: /\.(?:css|js|woff2?)$/, |
111 | navigateFallbackDenylist: [/^\/xtext-service/], | 111 | navigateFallbackDenylist: [/^\/xtext-service/], |