TS compiler API: prevent Export. to appear on nodes where there is not a export modifier
问题 in js an exported variable is declared like: "Exports.my_var = cool_value " , when using the Typyscript compiler api i have some varibales that originally have the export modifier like: export let a = 1; a = a + 1; that resolves in Exports.a = 1; Exports.a = Exports.a + 1; but i don't want them to be exported in the js file, i tried removing the export modifiers on the nodes, but they are still compiled with the Exports. [UPDATE] some example code Transformer: ast = VisitNode(ast,function() {