swc dropped the type information in casts without visiting it. It caused
to be compiled as
This is fixed by visiting types, and
swc now emits
Plugin was broken because
swc.transformSync emits original code even though user modified the ast. This is fixed and to prevent such regession, I moved node-swc into the main repository.