Remove dependency "vite-tsconfig-paths"

Not needed anymore
This commit is contained in:
schroda
2026-04-25 23:33:05 +02:00
parent 88bbbe390b
commit 5d6b781cc7
3 changed files with 3 additions and 24 deletions

View File

@@ -9,7 +9,6 @@
import path from 'path';
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import viteTsconfigPaths from 'vite-tsconfig-paths';
import legacy from '@vitejs/plugin-legacy';
import { VitePWA } from 'vite-plugin-pwa';
import { lingui } from '@lingui/vite-plugin';
@@ -23,9 +22,10 @@ export default defineConfig(({ command }) => ({
},
server: {
port: Number(process.env.PORT),
allowedHosts: process.env.ALLOWED_HOSTS.split(',').map((s) => s.trim()),
allowedHosts: process.env.ALLOWED_HOSTS?.split(',').map((s) => s.trim()),
},
resolve: {
tsconfigPaths: true,
alias: {
'@': path.resolve(import.meta.dirname, './src'),
},
@@ -40,7 +40,6 @@ export default defineConfig(({ command }) => ({
lingui({
failOnCompileError: true,
}),
viteTsconfigPaths(),
legacy({
modernPolyfills: [
'es/array/to-spliced',