Skip to content

Commit

Permalink
feat: add isMiniapp function
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverEllipsis committed Aug 23, 2024
1 parent ac575fe commit c77ddc4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/bui-utils/src/isMini.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

0 comments on commit c77ddc4

Please sign in to comment.