Skip to content
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

Add helper-hoist-variables docs #2500

Merged
merged 3 commits into from Apr 26, 2021
Merged

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Apr 15, 2021

Drafted a basic docs for @babel/helper-hoist-variables.

I think it is okay to leave it off the "Helper Packages" section since this helper serves a very specific purpose. It is sufficient for those who follow the link from the npm README.

Preview

@netlify
Copy link

netlify bot commented Apr 15, 2021

Deploy preview for babel ready!

Built with commit c6b7bd4

https://deploy-preview-2500--babel.netlify.app

@JLHwung JLHwung force-pushed the add-helper-hoist-variables branch 2 times, most recently from 189941c to 9efac1c Compare April 15, 2021 20:55

`@babel/plugin-proposal-do-expressions` also uses the same technique to hoist the `var` declarations in do blocks to the containing function scope.
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will add the link to implementations when babel/babel#13122 is merged.

Co-authored-by: Brian Ng <bng412@gmail.com>
@JLHwung JLHwung merged commit 71e9b45 into babel:main Apr 26, 2021
@JLHwung JLHwung deleted the add-helper-hoist-variables branch April 26, 2021 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants