From c77ddc459224a629d889fee5c63c811851156acb Mon Sep 17 00:00:00 2001 From: NeverEllipsis Date: Fri, 23 Aug 2024 15:50:30 +0800 Subject: [PATCH] feat: add isMiniapp function --- packages/bui-utils/src/isMini.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/bui-utils/src/isMini.ts b/packages/bui-utils/src/isMini.ts index 062a0f46..585e0b71 100644 --- a/packages/bui-utils/src/isMini.ts +++ b/packages/bui-utils/src/isMini.ts @@ -3,3 +3,7 @@ const isWeapp = process.env.TARO_ENV === 'weapp'; const isAlipay = process.env.TARO_ENV === 'alipay'; export { isMini, isWeapp, isAlipay }; + +export const isMiniapp = () => { + return isMini; +};