pl-fe: actually use browserslist

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-10-18 12:52:14 +02:00
parent 4fa2860721
commit 22433c03f9
3 changed files with 18 additions and 0 deletions

View File

@ -75,6 +75,7 @@
"blurhash": "^2.0.5",
"bowser": "^2.11.0",
"browserslist": "^4.24.4",
"browserslist-to-esbuild": "^2.1.1",
"clsx": "^2.1.1",
"core-js": "^3.39.0",
"cryptocurrency-icons": "^0.18.1",

View File

@ -3,6 +3,7 @@ import fs from 'node:fs';
import { fileURLToPath, URL } from 'node:url';
import react from '@vitejs/plugin-react';
import browserslistToEsbuild from 'browserslist-to-esbuild';
import { bundleStats } from 'rollup-plugin-bundle-stats';
import { defineConfig } from 'vite';
import checker from 'vite-plugin-checker';
@ -24,6 +25,7 @@ const config = defineConfig(({ command }) => ({
},
},
sourcemap: true,
target: browserslistToEsbuild(),
},
assetsInclude: ['**/*.oga'],
server: {