增加浏览器支持

release
Jimmy Liow 2 years ago
parent 68ff4aa3e2
commit c0e68442f5

1652
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -20,6 +20,7 @@
"devDependencies": {
"@types/react": "^18.0.28",
"@types/react-dom": "^18.0.11",
"@vitejs/plugin-legacy": "^4.0.2",
"@vitejs/plugin-react": "^3.1.0",
"vite": "^4.2.0"
}

@ -1,12 +1,18 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import legacy from '@vitejs/plugin-legacy'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [
react(),
legacy({
targets: ['defaults', 'not IE 11'],
})
],
resolve: {
alias: {
'@': '/src',
},
},
}
}
})

Loading…
Cancel
Save