Skip to content

Conversation

@JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Nov 29, 2022

Q                       A
License MIT

This PR is the first step of deprecating the ModuleDeclaration alias in light of the AST type ModuleDeclaration proposed in the Stage 1 proposal. It replaces current alias usage to a union of ImportDeclaration and ExportDeclaration.

The AST spec changes are editorial.

@JLHwung JLHwung force-pushed the remove-module-declaration-alias-usage branch from 7acbf59 to c4e49b1 Compare November 29, 2022 18:24
@babel-bot
Copy link
Collaborator

babel-bot commented Nov 29, 2022

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/53572/

@nicolo-ribaudo
Copy link
Member

Note: it's now a Stage 2 proposal.

- [ClassPrivateProperty](#classprivateproperty)
- [StaticBlock](#staticblock)
- [ClassDeclaration](#classdeclaration)
- [ClassExpression](#classexpression)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this file auto-generated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. It seems to me this file is modified from the estree spec. We could somehow generate it if we move the labelling/descriptions to source comments.

@JLHwung JLHwung merged commit f543b61 into babel:main Dec 5, 2022
@JLHwung JLHwung deleted the remove-module-declaration-alias-usage branch December 5, 2022 20:10
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Mar 8, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants