16 lines
307 B
TypeScript
16 lines
307 B
TypeScript
import react from '@vitejs/plugin-react'
|
|
import { defineConfig } from 'vite'
|
|
import { nodePolyfills } from 'vite-plugin-node-polyfills'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
nodePolyfills({
|
|
globals: {
|
|
Buffer: true,
|
|
},
|
|
}),
|
|
],
|
|
})
|