v1.2.0
It added new getStaticValue
function 🎉
The getStaticValue
evaluates AST node statically then get the static value.
For a complex example, this function can evaluate the following case on AST:
const eventName = "click"
const aMap = Object.freeze({
click: 777
})
;`on${eventName} : ${aMap[eventName]}` // evaluated to "onclick : 777"