智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LightingSystemApp-serial/.svn/pristine/87/878577d43124efb45d28a95efba...

21 lines
438 B

3 years ago
process.UNI_APIS = new Set()
module.exports = function ({
types: t
}) {
return {
visitor: {
MemberExpression (path, state) {
if (
t.isIdentifier(path.node.object) &&
(
path.node.object.name === 'uni' ||
path.node.object.name === 'wx'
)
) {
process.UNI_APIS.add(path.node.property.name || path.node.property.value)
}
}
}
}
}