New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix exportKind declaration in babel-types #10126
Conversation
…reExportAllDeclaration in babel-types
@@ -260,6 +261,7 @@ defineType("ExportNamedDeclaration", { | |||
validate: assertNodeType("StringLiteral"), | |||
optional: true, | |||
}, | |||
exportKind: validateOptional(assertOneOf("type", "value", "let")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When is it let
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
found it in astexplorer when trying:
export let something=1
but can not reproduce it now… - will remove it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, that should be a value
export.
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/11000/ |
babel-types
:exportKind
forExportNamedDeclaration
exportKind
type forDeclareExportAllDeclaration
babel-parser
:- updated types in to includeexportKind=let