From f3145d7a7f27e73b2b86c574bebe57cc6bd33494 Mon Sep 17 00:00:00 2001 From: unanmed <1319491857@qq.com> Date: Tue, 27 Oct 2026 21:09:06 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=88=A0=E9=99=A4=20@dp=20alias?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/plugin/shop/shop.tsx | 4 ++-- vite.config.ts | 9 --------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/client/plugin/shop/shop.tsx b/src/client/plugin/shop/shop.tsx index c275ae2..5b3aff7 100644 --- a/src/client/plugin/shop/shop.tsx +++ b/src/client/plugin/shop/shop.tsx @@ -5,8 +5,8 @@ import { Scroll, TextContent } from '@user/client-base'; import { IHeroState } from '@user/data-base'; import { IHeroAttr } from '@user/data-common'; import { IUIPropsBase } from '@user/client-modules'; -import { IShopState, IShopSystem } from '@dp/shop'; -import { FULL_LOC, MAIN_WIDTH, RENDER_WIDTH } from '@/client'; +import { IShopState, IShopSystem } from '@/data/plugin/shop'; +import { FULL_LOC, MAIN_HEIGHT, MAIN_WIDTH, RENDER_WIDTH } from '@/client'; export interface IShopProps extends IUIPropsBase { /** 商店状态对象 */ diff --git a/vite.config.ts b/vite.config.ts index c552ac3..30c206c 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -26,14 +26,6 @@ const aliasesUser = glob.sync('packages-user/*/src').map((srcPath) => { }; }); -const aliasesDP = glob.sync('src/data/plugin/*').map((srcPath) => { - const packageName = path.basename(path.dirname(srcPath)); - return { - find: `@dp/${packageName}`, - replacement: path.resolve(__dirname, srcPath), - }; -}); - // https://vitejs.dev/config/ export default defineConfig({ plugins: [ @@ -49,7 +41,6 @@ export default defineConfig({ alias: [ ...aliases, ...aliasesUser, - ...aliasesDP, { find: '@/', replacement: path.resolve(__dirname, 'src/')