totp/vite.config.ts

15 lines
317 B
TypeScript
Raw Normal View History

2024-04-06 22:54:44 -04:00
import {defineConfig} from 'vite';
import react from '@vitejs/plugin-react';
2024-04-07 00:13:19 -04:00
import {nodePolyfills} from 'vite-plugin-node-polyfills';
2024-04-06 22:54:44 -04:00
// https://vitejs.dev/config/
export default defineConfig({
2024-04-07 00:13:19 -04:00
plugins: [
react(),
nodePolyfills({
include: ['buffer'],
globals: {Buffer: true},
}),
],
2024-04-06 22:54:44 -04:00
});