fix: 拆分es和commonjs

This commit is contained in:
2023-07-13 10:20:54 +08:00
parent 86c9e7d6f1
commit d60f583aef
3 changed files with 38 additions and 8 deletions

View File

@ -1,8 +1,8 @@
/*
* @Author: zhaojinfeng 121016171@qq.com
* @Date: 2023-06-25 10:56:32
* @LastEditors: peerless_hero peerless_hero@outlook.com
* @LastEditTime: 2023-07-13 04:11:50
* @LastEditors: zhaojinfeng 121016171@qq.com
* @LastEditTime: 2023-07-13 10:20:10
* @FilePath: \uni\utils\resolver.js
* @Description: 自动导入组件的解析器
*
@ -20,7 +20,7 @@ function toLower(name) {
return lower
}
export default function (name) {
module.exports.resolverThzxcx = function (name) {
if (name.startsWith('Th')) {
const componentName = toLower(name.slice(2))
return {