Skip to content

Commit b1363e9

Browse files
author
zhengyanan18
committed
fix(transform): 把mapping传入小程序侧
1 parent 87d4107 commit b1363e9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/taro-runtime/src/utils/index.ts

+5
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ import type { TaroNode } from '../dom/node'
2020
import type { TaroText } from '../dom/text'
2121
import type { TFunc } from '../interface'
2222

23+
// eslint-disable-next-line no-var
24+
declare var jd: any
25+
2326
export const incrementId = () => {
2427
const chatCodes: number[] = []
2528
// A-Z
@@ -126,6 +129,8 @@ let componentsAlias
126129
export function getComponentsAlias () {
127130
if (!componentsAlias) {
128131
componentsAlias = _getComponentsAlias(internalComponents)
132+
// 把mapping传入基础库
133+
jd && jd.setMapping && jd.setMapping(componentsAlias)
129134
}
130135
return componentsAlias
131136
}

0 commit comments

Comments
 (0)