18 lines
355 B
TypeScript
18 lines
355 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import tsconfigPaths from 'vite-tsconfig-paths'
|
|
import { nodePolyfills } from 'vite-plugin-node-polyfills'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
tsconfigPaths(),
|
|
nodePolyfills({
|
|
include: ['os']
|
|
})
|
|
],
|
|
build: {
|
|
target: 'ES2022'
|
|
}
|
|
})
|