mirror of
https://github.com/acedanger/finance.git
synced 2025-12-05 22:50:12 -08:00
feat: enhance module resolution and improve API error handling
This commit is contained in:
@@ -15,6 +15,15 @@ export default defineConfig({
|
||||
vite: {
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': '/src',
|
||||
'@components': '/src/components',
|
||||
'@layouts': '/src/layouts',
|
||||
'@data': '/src/data',
|
||||
'@pages': '/src/pages',
|
||||
'@styles': '/src/styles',
|
||||
'@stores': '/src/stores',
|
||||
'@utils': '/src/utils',
|
||||
'@types': '/src/types.ts',
|
||||
// Use the browser version of react-dom/server for client-side rendering
|
||||
'react-dom/server.browser': 'react-dom/cjs/react-dom-server.browser.production.min.js',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user