Closed jcubic closed 2 years ago
Add similar code as in gaiman to guard against infinite loops (inspired by CodePen). Try to use falafel. Or use a JavaScript parser like Esprima + escodegen.
node-falafel was unusable because it works with strings.
Here is working transformer: https://codepen.io/jcubic/pen/gOejqEz?editors=1010
Add similar code as in gaiman to guard against infinite loops (inspired by CodePen). Try to use falafel. Or use a JavaScript parser like Esprima + escodegen.