2024-02-27 19:03:15 +05:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
import react from '@vitejs/plugin-react'
|
2024-05-31 12:44:14 +05:00
|
|
|
import tsconfigPaths from 'vite-tsconfig-paths'
|
2024-10-25 18:38:47 +02:00
|
|
|
import { nodePolyfills } from 'vite-plugin-node-polyfills'
|
2025-01-29 16:46:04 +03:00
|
|
|
import zipPack from 'vite-plugin-zip-pack'
|
2024-02-27 19:03:15 +05:00
|
|
|
|
|
|
|
export default defineConfig({
|
2024-10-25 18:38:47 +02:00
|
|
|
plugins: [
|
|
|
|
react(),
|
|
|
|
tsconfigPaths(),
|
|
|
|
nodePolyfills({
|
|
|
|
include: ['os']
|
2025-01-29 16:46:04 +03:00
|
|
|
}),
|
|
|
|
zipPack()
|
2024-10-25 18:38:47 +02:00
|
|
|
],
|
2024-05-31 12:44:14 +05:00
|
|
|
build: {
|
2024-08-08 12:37:47 +02:00
|
|
|
target: 'ES2022'
|
2024-05-31 12:44:14 +05:00
|
|
|
}
|
2024-02-27 19:03:15 +05:00
|
|
|
})
|