Skip to content

Commit

Permalink
fix(transform): 把mapping传入小程序侧
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengyanan18 committed Dec 19, 2024
1 parent 87d4107 commit b1363e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/taro-runtime/src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ import type { TaroNode } from '../dom/node'
import type { TaroText } from '../dom/text'
import type { TFunc } from '../interface'

// eslint-disable-next-line no-var
declare var jd: any

export const incrementId = () => {
const chatCodes: number[] = []
// A-Z
Expand Down Expand Up @@ -126,6 +129,8 @@ let componentsAlias
export function getComponentsAlias () {
if (!componentsAlias) {
componentsAlias = _getComponentsAlias(internalComponents)
// 把mapping传入基础库
jd && jd.setMapping && jd.setMapping(componentsAlias)
}
return componentsAlias
}
Expand Down

0 comments on commit b1363e9

Please sign in to comment.