GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Generate helper metadata at build time by nicolo-ribaudo · Pull Request #16501 · babel/babel

Conversation

@nicolo-ribaudo

@nicolo-ribaudo nicolo-ribaudo commented May 16, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member
Q                       A
Fixed Issues? Fixes #1, Fixes #2
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

The goal of this PR is to:

  • move as much analysis of helpers as possible to build time rather than runtime
  • make helpers lighter, by working as much as possible with them as an AST rather than a NodePath at runtime
  • get rid of the File class that needs to be injected from @babel/core to @babel/helpers through .ensure(name, FileClass)

This PR reduces the time needed to process a single helper by half (allHelpersNames.map(name => this.addHelper(name)); takes 100ms rather than 190ms on my machine)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

liuxingbaoyu, JLHwung, and SukkaW reacted with thumbs up emoji
All reactions
  • 👍 3 reactions
@babel-bot

babel-bot commented May 16, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@nicolo-ribaudo
nicolo-ribaudo force-pushed the static-helper-metata branch from 17a94db to 7883619 Compare May 17, 2024 11:06
liuxingbaoyu
liuxingbaoyu approved these changes May 17, 2024
View reviewed changes

@liuxingbaoyu liuxingbaoyu left a comment

Copy link
Copy Markdown
Member

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.

Great! I like this!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@nicolo-ribaudo
nicolo-ribaudo force-pushed the static-helper-metata branch from 0ca190e to 0c29d67 Compare May 17, 2024 11:36
@nicolo-ribaudo nicolo-ribaudo mentioned this pull request May 17, 2024
[helpers TS conversion] reflection #16507
Merged
@nicolo-ribaudo
nicolo-ribaudo force-pushed the static-helper-metata branch 2 times, most recently from c95ee9a to fc45887 Compare May 18, 2024 12:38
@nicolo-ribaudo
nicolo-ribaudo marked this pull request as ready for review May 19, 2024 12:17
@nicolo-ribaudo nicolo-ribaudo added the PR: Internal 🏠 A type of pull request used for our changelog categories label May 19, 2024
@nicolo-ribaudo nicolo-ribaudo mentioned this pull request May 20, 2024
[helpers TS conversion] async functions/generators #16510
Merged
@nicolo-ribaudo
nicolo-ribaudo force-pushed the static-helper-metata branch from 6f9b0fc to 168c0d2 Compare May 20, 2024 10:34
nicolo-ribaudo
nicolo-ribaudo commented May 20, 2024
View reviewed changes
Comment thread packages/babel-helpers/src/helpers/OverloadYield.js
this.k = kind;
}

export { _OverloadYield as default };

@nicolo-ribaudo nicolo-ribaudo May 20, 2024

Copy link
Copy Markdown
Member Author

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.

Support for this is needed in #16510

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
nicolo-ribaudo added 18 commits May 22, 2024 09:31
@nicolo-ribaudo
Generate helper metadata at build time
a521a67
@nicolo-ribaudo
Update test (there is a regression)
07c6a0d
@nicolo-ribaudo
Fix regression
6994c85
@nicolo-ribaudo
Handle importPaths at build time
544fa92
@nicolo-ribaudo
Compute dependency path mapping statically
8fe3674
@nicolo-ribaudo
Mostly work on a raw AST at runtime
6e22f11
@nicolo-ribaudo
Remove export default at build time
83f037a
@nicolo-ribaudo
Statically compute rename paths for local bindings
e4e9a57
@nicolo-ribaudo
Statically rename exported binding
76e3328
@nicolo-ribaudo
Remove usages of traverse/core
cc338cb
@nicolo-ribaudo
Cleanup
21983bc
@nicolo-ribaudo
Move external/runtime-helpers logic out of babel/helpers
973545f
@nicolo-ribaudo
Fix CI
cd5bcce
@nicolo-ribaudo
Object.entries polyfill
0ba22c3
@nicolo-ribaudo
Fix helpers tests
c87c116
@nicolo-ribaudo
Update entries polyfill
8f869c8
@nicolo-ribaudo
Support separate export { ... as default } declaration
94a2cdc
@nicolo-ribaudo
make build
e1c7a5a
@tiff-es tiff-es mentioned this pull request Aug 19, 2024
[Snyk] Upgrade: , tiff-es/fewpjs-fns-as-first-class-data-do-behavior-dc-web-091619#204
Open
@Mhmonicox Mhmonicox mentioned this pull request Aug 19, 2024
[Snyk] Upgrade: , , , , Mhmonicox/node#140
Open
This was referenced Aug 19, 2024
[Snyk] Upgrade: , tiff-es/fewpjs-adding-behavior-with-methods-dc-web-091619#222
Open
[Snyk] Upgrade: , tiff-es/fewpjs-class-extensions-super-lab-online-web-sp-000#208
Open
This was referenced Aug 19, 2024
[Snyk] Upgrade @babel/runtime from 7.12.5 to 7.25.0 junInUK/meteor-reminder-react-router#110
Open
[Snyk] Upgrade @babel/runtime from 7.17.9 to 7.25.0 junInUK/meteor-blaze-reminders#76
Open
@rish2497 rish2497 mentioned this pull request Aug 19, 2024
[Snyk] Upgrade: , i3-Market-V3-Public-Repository/Support---Deployment-Tools#40
Open
@AnushaSalian AnushaSalian mentioned this pull request Aug 19, 2024
[Snyk] Upgrade: , virtual-labs/ph3-lab-mgmt#508
Open
@mdfkbtc mdfkbtc mentioned this pull request Aug 19, 2024
[Snyk] Upgrade @babel/preset-env from 7.5.0 to 7.25.0 mdfkbtc/veles-mobile-wallet-mdfkbtc#1817
Open
@Mhmonicox Mhmonicox mentioned this pull request Aug 20, 2024
[Snyk] Upgrade: , , , , Mhmonicox/node#141
Open
@bee22193 bee22193 mentioned this pull request Aug 20, 2024
[Snyk] Upgrade: , bee22193/mnmlurl#1237
Open
@anandgupta193 anandgupta193 mentioned this pull request Aug 20, 2024
[Snyk] Upgrade: , anandgupta193/sortNsuffle-react#1111
Open
@AnushaSalian AnushaSalian mentioned this pull request Aug 20, 2024
[Snyk] Upgrade: , virtual-labs/ph3-lab-mgmt#509
Open
@richyhoopd richyhoopd mentioned this pull request Aug 20, 2024
[Snyk] Upgrade: , , richyhoopd/RichyFlix#908
Open
@rawdaymohamed rawdaymohamed mentioned this pull request Aug 20, 2024
[Snyk] Upgrade: , , , rawdaymohamed/Hot-Todo#357
Open
@richyhoopd richyhoopd mentioned this pull request Aug 20, 2024
[Snyk] Upgrade: , , richyhoopd/Video-App#1198
Open
@jlourenc jlourenc mentioned this pull request Aug 20, 2024
[Snyk] Upgrade: , , snyk/vscode-extension#517
Closed
@ashly1111111 ashly1111111 mentioned this pull request Aug 21, 2024
[Snyk] Upgrade: , , , , ashly1111111/node#122
Open
@bee22193 bee22193 mentioned this pull request Aug 21, 2024
[Snyk] Upgrade: , bee22193/mnmlurl#1238
Open
@AnushaSalian AnushaSalian mentioned this pull request Aug 21, 2024
[Snyk] Upgrade: , virtual-labs/ph3-lab-mgmt#510
Open
@DanielRivers DanielRivers mentioned this pull request Aug 21, 2024
[Snyk] Upgrade @babel/cli from 7.24.1 to 7.24.8 kinde-oss/kinde-nodejs-sdk#32
Merged
@anandgupta193 anandgupta193 mentioned this pull request Aug 21, 2024
[Snyk] Upgrade: , anandgupta193/sortNsuffle-react#1112
Open
This was referenced Aug 21, 2024
[Snyk] Upgrade: , , richyhoopd/Video-App#1199
Open
[Snyk] Upgrade: , , richyhoopd/RichyFlix#909
Open
@rawdaymohamed rawdaymohamed mentioned this pull request Aug 21, 2024
[Snyk] Upgrade: , , , rawdaymohamed/Hot-Todo#359
Open
@ashly1111111 ashly1111111 mentioned this pull request Aug 21, 2024
[Snyk] Upgrade: , , , , ashly1111111/node#123
Open
@Mhmonicox Mhmonicox mentioned this pull request Aug 21, 2024
[Snyk] Upgrade: , , , , Mhmonicox/node#143
Open
@bee22193 bee22193 mentioned this pull request Aug 21, 2024
[Snyk] Upgrade: , bee22193/mnmlurl#1239
Open
@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 Aug 22, 2024
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@liuxingbaoyu liuxingbaoyu liuxingbaoyu approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Internal 🏠 A type of pull request used for our changelog categories

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@nicolo-ribaudo @babel-bot @liuxingbaoyu
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.