提交 5a6d50b8 编写于 作者: fxy060608's avatar fxy060608

fix(mp): remove unused key (app.json)

上级 599ebfc0
......@@ -26,6 +26,15 @@ export function parseMiniProgramPagesJson(
return parsePagesJson(jsonStr, platform, options)
}
const NON_APP_JSON_KEYS = [
'unipush',
'usingComponents',
'optimization',
'scopedSlotsCompiler',
'usingComponents',
'uniStatistics',
]
export function mergeMiniProgramAppJson(
appJson: Record<string, any>,
platformJson: Record<string, any> = {}
......@@ -33,12 +42,7 @@ export function mergeMiniProgramAppJson(
Object.keys(platformJson).forEach((name) => {
if (
!isMiniProgramProjectJsonKey(name) &&
![
'unipush',
'usingComponents',
'optimization',
'scopedSlotsCompiler',
].includes(name)
!NON_APP_JSON_KEYS.includes(name)
) {
appJson[name] = platformJson[name]
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册