mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2024-11-27 08:39:59 +08:00
16 lines
380 B
TypeScript
16 lines
380 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { virtualExamplePlugin } from '@sunmao-ui/vite-plugins';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
virtualExamplePlugin(),
|
|
],
|
|
define: {
|
|
// https://github.com/satya164/react-simple-code-editor/issues/86
|
|
global: 'globalThis',
|
|
},
|
|
});
|