import 'reflect-metadata'
import React from 'react'
import ReactDOM from 'react-dom/client'
import { HashRouter } from 'react-router-dom'
import App from './App'
import 'antd/dist/reset.css'
import '@douyinfe/semi-ui/dist/css/semi.min.css'
import './styles/global.css'
import { setupReactDevFixes } from './utils/react18-polyfill'

// 仅在开发环境启用所有修复（幂等，不影响其他功能）
if (import.meta.env.DEV) {
  setupReactDevFixes()
}

ReactDOM.createRoot(document.getElementById('root')!).render(
  <HashRouter>
    <App />
  </HashRouter>
)