You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 9, 2021. It is now read-only.
I have reproduced the error on dev/export.support but I believe it looks like the code won't be easily resolvable.
We are going to want to support a syntax like:
exportconsta='hello',b='world';
which we would convert to:
exportconsta='hello';exportconstb='world';
The root cause of the problem is we currently assume that there is a single VariableDeclaration node (e.g. var, let, const). However, when we add an export there are 2 nodes that we need to clone to the head of each var (i.e. ExportNamedDeclaration and VariableDeclaration).
With esformatter 0.9.0 and esformatter-var-each 2.1.0:
Input:
Output:
Cannot read property 'indexOf' of undefined
The text was updated successfully, but these errors were encountered: