mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2024-12-09 09:20:18 +08:00
18 lines
531 B
TypeScript
18 lines
531 B
TypeScript
import { defineConfig } from 'vite';
|
|
import reactRefresh from '@vitejs/plugin-react-refresh';
|
|
import tsconfigPaths from 'vite-tsconfig-paths';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [reactRefresh(), tsconfigPaths()],
|
|
define: {
|
|
// https://github.com/satya164/react-simple-code-editor/issues/86
|
|
global: 'globalThis',
|
|
},
|
|
esbuild: {
|
|
// https://dev.to/ajitsinghkamal/using-emotionjs-with-vite-2ndj
|
|
jsxFactory: 'jsx',
|
|
jsxInject: 'import { jsx } from "@emotion/react"',
|
|
},
|
|
});
|