Ethan Wu
Ethan Wu
It appears that the iteration of the ast tree incurs performance degradation. However, it necessitates the duplication of statements for replacement. Are there alternative approaches that could be considered?
> @7086cmd Can you hold onto this and let us take a look first? We may end up implementing this differently with architectural changes. Ok. It does need some refactor,...
For this PR, I would prefer what `esbuild` does: more visible and no need for refactor for multiple statements here: https://esbuild.github.io/try/#dAAwLjIzLjEALS10YXJnZXQ9Y2hyb21lNTAAYXN5bmMgZnVuY3Rpb24gYSgpIHsKICAgIGF3YWl0IDE7Cn0KCmFzeW5jIChkKSA9PiB7CiAgICBhd2FpdCAyOwogICAgYXdhaXQgZCgpCn0K.
Hello @overlookmotel and @Dunqing, It appears that in babel, these functions share a common `wrap_function` helper. Given the complexity of the scenarios, I propose that I address several common situations...
> Thanks for your work! I am going to merge this PR and then complete this plugin later Thanks! Just a heads-up: this PR is from my personal forked repository,...
* **#6335** * **#6332** * **#6281** * **#6280** * **#6269** ๐ * `main` This stack of pull requests is managed by Graphite. Learn more about stacking. Join @7086cmd and the...
> Would you like to copy everything over in one go? Sharpen your code editing skills ๐ If you are asking me to do in to every ast pass together...
* **#6698** ๐ * `main` This stack of pull requests is managed by Graphite. Learn more about stacking. Join @7086cmd and the rest of your teammates on Graphite
Subsequently, the helper code will be โreplacedโ in the following location: https://github.com/babel/babel/blob/main/packages/babel-helpers/src/helpers-generated.ts. One of the helper files is in human-readable JavaScript (with indents and visible variables), while the other is...
I want to handle the async/await in ES2017. Currently non-arrow function is well transformed in my codebase.