estools / estraverse

ECMAScript JS AST traversal functions
BSD 2-Clause "Simplified" License
941 stars 131 forks source link

feat: support addComments with fallback iteration #98

Open seasonli opened 5 years ago

seasonli commented 5 years ago

estraverse.addComments() not support some syntax like dynamic import.

If using estraverse.traverse(), can solve this problem with setting fallback='iteration', but not supported in just calling estraverse.addComments().