MCPcopy
hub / github.com/NervJS/taro / fixPageEntry

Function fixPageEntry

packages/taro-platform-harmony-cpp/src/program/vite/page.ts:114–121  ·  view source on GitHub ↗
(meta: TPageMeta)

Source from the content-addressed store, hash-verified

112 }
113 config.modifyPageImport = function (this: PageParser, importStr: string[], page: TPageMeta | TPageMeta[]) {
114 function fixPageEntry (meta: TPageMeta) {
115 Object.assign(config.entryOption, {
116 routeName: meta.name,
117 })
118 if (isObject(meta.config?.entryOption)) {
119 Object.assign(config.entryOption, meta.config.entryOption)
120 }
121 }
122
123 if (!isPureComp(page)) {
124 if (page instanceof Array) {

Callers 1

parsePageOrCompFunction · 0.85

Calls 2

isObjectFunction · 0.90
assignMethod · 0.80

Tested by

no test coverage detected