Skip to content

是不是没有考虑分包的情况 #3

@erTongWang

Description

@erTongWang

function getFullPath(originPath, search = '') {
return originPath
.replace(PAGE_REGEXP, '/pages/')
.replace(INDEX_REGEXP, /index${search});
}
exports.getFullPath = getFullPath;

这个方法 如果我现在分包的目录是views/login/index.jsx 默认获取的路径是从pages开始的

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions