fix(mp-toutiao): 停止对同步子组件强制注入 componentPlaceholder - #6060
Open
javascript-unsafe wants to merge 1 commit into
Open
fix(mp-toutiao): 停止对同步子组件强制注入 componentPlaceholder#6060javascript-unsafe wants to merge 1 commit into
javascript-unsafe wants to merge 1 commit into
Conversation
javascript-unsafe
force-pushed
the
fix/mp-toutiao-no-force-placeholder
branch
from
September 3, 2026 19:49
ee70f6d to
714c603
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
uni-cli-shared的updateUsingComponents在mp-toutiao的 Component update 路径上,把全部usingComponents写成componentPlaceholder: "view"。componentPlaceholder只用于延迟注入。同步子组件(uView / 本地组件)被写成view后,新基础库会按占位规则降级成空<view>。componentPlaceholder。Vue3next本来就没有这段逻辑。Test plan
packages/uni-cli-shared/__tests__/cache.spec.js—mp-toutiao generate component.json覆盖 add + update,产物不再含自动componentPlaceholder<view>