Skip to content

Commit e9e915e

Browse files
committed
frontend: set vite/esbuild build target to chrome 122
Qt was upgraded to 6.8.2 which includes a newer chromium version in 84a8a71 Bumped build target in vite config, this saves a few bytes. - 84a8a71 - https://wiki.qt.io/QtWebEngine/ChromiumVersions - https://vite.dev/guide/build#browser-compatibility - https://esbuild.github.io/api/#target Browserlist in package.json seems to be only supported by vite plugin-legacy, see: - https://github.com/vitejs/vite/tree/main/packages/plugin-legacy#targets Removed Browserlist in package.json.
1 parent 797af2f commit e9e915e

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

frontends/web/package.json

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,6 @@
4646
"react-app/jest"
4747
]
4848
},
49-
"browserslist": {
50-
"production": [
51-
"chrome >= 83"
52-
],
53-
"development": [
54-
"last 1 chrome version",
55-
"last 1 firefox version",
56-
"last 1 safari version"
57-
]
58-
},
5949
"scripts": {
6050
"dev": "npm run start",
6151
"start": "vite --cors --host",

frontends/web/vite.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default defineConfig((env) => {
1414
build: {
1515
modulePreload: false,
1616
outDir: 'build',
17-
target: ['chrome83'],
17+
target: ['chrome122'],
1818
},
1919
plugins: [
2020
react(),

0 commit comments

Comments
 (0)