mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2024-12-09 09:20:18 +08:00
17 lines
465 B
TypeScript
17 lines
465 B
TypeScript
import { defineConfig } from 'vite';
|
|
import reactRefresh from '@vitejs/plugin-react-refresh';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [reactRefresh()],
|
|
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'`,
|
|
},
|
|
});
|