mirror of
https://github.com/motajs/template.git
synced 2026-10-31 13:50:17 +08:00
chore: 删除 @dp alias
This commit is contained in:
parent
e2415a7a48
commit
f3145d7a7f
@ -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 {
|
||||
/** 商店状态对象 */
|
||||
|
||||
@ -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/')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user