Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packages/taro-runtime/src/dsl/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,12 @@ export function createRecursiveComponentConfig (componentName?: string) {
}
: EMPTY_OBJ

// 不同平台的个性化配置
const extraOptions: { [key: string]: any } = {}
if (process.env.TARO_ENV === 'jd') {
extraOptions.addGlobalClass = true
}

return hooks.call('modifyRecursiveComponentConfig',
{
properties: {
Expand All @@ -378,6 +384,7 @@ export function createRecursiveComponentConfig (componentName?: string) {
}
},
options: {
...extraOptions,
virtualHost: !isCustomWrapper
},
methods: {
Expand Down
Loading