UNPKG

gogoast

Version:

The simplest tool to parse/transform/generate code by ast

9 lines 223 B
module.exports = { go: { match: 'attr', key: 'onClick', handle (node, { attrs, attrMap, parentRef, posIndex, filePath }) { attrMap['onClick'].value.content = 'trans' } } }