RESSA
RESSA copied to clipboard
Unsupported export syntax
Following syntax seems to be not supported:
export * as A from "M";
Tested on source location branch
Thank you for the bug report!
Is this something you would be interested in fixing?
This bug will most likely require a change to resast since the ModExportSpecifier::All
doesn't have the ability to handle the identifier.
Alternatively the method parse_all_export
could return a ModExportSpecifier::Named
in this case, which I believe would avoid a version bump for the breaking change but I don't really love having the ExportSpecifier::local
property be an Ident
with "*" as the value which is technically not a valid identifier.
We could push the later into 0.8.1 and slate the former for a 0.9.0 update
For reference, I have created https://github.com/rusty-ecma/resast/pull/7
I would prefer the AST to be in clean state with all identifier really being identifier. I can take a look when time permits but at the moment it's not a priority for me.