Comments (6)
Thanks for this!
Maybe we could make rename
accept an array of string | string[]
?
from babel.
Hey @remorses! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.
If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.
from babel.
In my code I used a Map
that goes from old names to new names. I am not sure if this feature would be used enough and if it would make sense to add to babel core
from babel.
We would at least use it in the commonjs transform, where we rename multiple identifiers one after the other, and probably in the let/const transform where we can batch-rename variables when converting them to var
.
from babel.
Why is a full traverse needed in the first place? Got a massive performance boost by looping over binding.referencePaths/constantViolations instead (without batching)
from babel.
Why is a full traverse needed in the first place? Got a massive performance boost by looping over binding.referencePaths/constantViolations instead (without batching)
Because binding.referencePaths/constantViolations
may be inaccurate, using them may have some risks.
from babel.
Related Issues (20)
- path remove fail HOT 2
- [babel 8] Cleanup parser plugins HOT 3
- [Bug]: @babel/register does not load ESM modules from node_modules in node v22 HOT 1
- [Bug]: Error parsing TypeScript generics on left-hand side HOT 1
- [Bug]: Object rest, side effect order and function scope HOT 1
- [parser] Expose somehing like `program.extra.async` to easily know if a module uses top-level await HOT 3
- [Bug]: Crash with decorators on anonymous class expression HOT 2
- [Bug]: Auto-accessors should use `this` rather than the class name HOT 2
- [Bug]: Await in a class decorator is not properly transpiled
- [Bug]: export default is not a function HOT 7
- [Bug]: Cannot use @babel/preset-env in the browser from version 7.24.1 HOT 3
- [Bug]: When I pull the Babel source code and execute the make bootstrap command, a syntax error is reported HOT 4
- [Bug]: No strict library versions in package.json HOT 8
- Convert remaning runtime helpers to TypeScript HOT 22
- @babel/plugin-proposal-duplicate-named-capturing-groups-regex: support dynamically created regular expressions HOT 5
- [Bug]: @babel/traverse incorrect constantViolations with destructuring HOT 1
- [Bug]: Incorrect print result of TSModuleDeclaration HOT 7
- [Bug]: transitive dependency of @ampproject/remapping flagged as malware HOT 3
- [Bug]: path.scope.getBinding(..) has fake referencePaths after some manipulations HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from babel.