fix: error when serving

This commit is contained in:
unanmed 2025-03-04 22:28:00 +08:00
parent 1556e2c3ea
commit b3d5ad2ca9
2 changed files with 12 additions and 5 deletions

View File

@ -16,6 +16,7 @@
"dependencies": {
"@motajs/render": "workspace:*",
"@motajs/common": "workspace:*",
"@motajs/client": "workspace:*",
"@ant-design/icons-vue": "^6.1.0",
"@emotion/css": "^11.13.0",
"@vueuse/core": "^10.11.1",

View File

@ -6,7 +6,7 @@ import vuejsx from '@vitejs/plugin-vue-jsx'
import { AntDesignVueResolver } from 'unplugin-vue-components/resolvers';
import path, { resolve } from 'path';
import postcssPresetEnv from 'postcss-preset-env';
import glob from 'glob'
import * as glob from 'glob'
const FSHOST = 'http://127.0.0.1:3000/';
@ -44,11 +44,17 @@ export default defineConfig({
],
base: `./`,
resolve: {
alias: {
alias: [
...aliases,
'@': resolve(__dirname, './src'),
'@ui': resolve(__dirname, './src/ui')
}
{
find: '@',
replacement: resolve(__dirname, './src')
},
{
find: '@ui',
replacement: resolve(__dirname, './src/ui')
}
]
},
build: {
rollupOptions: {