12 lines
356 B
TypeScript
12 lines
356 B
TypeScript
|
import react from '@vitejs/plugin-react-swc';
|
||
|
import { defineConfig } from 'vite';
|
||
|
import nodePolyfills from 'vite-plugin-node-stdlib-browser';
|
||
|
import pluginRewriteAll from 'vite-plugin-rewrite-all';
|
||
|
|
||
|
// https://vitejs.dev/config/
|
||
|
export default defineConfig(({ mode }) => {
|
||
|
return {
|
||
|
plugins: [react(), nodePolyfills(), pluginRewriteAll()],
|
||
|
};
|
||
|
});
|