pl-fe: actually use browserslist
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -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",
|
||||
|
||||
@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user