You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I am implementing a tool to transform an expression using parser.parseExpression, traverse, types.X and generate(exp). This tool should be directly used on the web however @babel/standalone doesn't export these toolings.
Describe the solution you'd like
Directly export babel tooling in @babel/standalone(and @babel/core, since @babel/standalone just imports from it).
Describe alternatives you've considered
I tried to use babel.transform from @babel/standalone. But an expression will be treated as a statement by babel or trigger a parsing error(like { a, b: 3, ...obj }).
The text was updated successfully, but these errors were encountered:
Hey @ajihyf! 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."
@nicolo-ribaudo The wrapped statement generates code as a statement, eg. (3) -> 3; and ({ a, b: 3, ...obj }) -> ({ a, b: 3, ...obj });. I've tried to use string manipulation functions to remove these punctuations but seems tricky and error prune.
Feature Request
Is your feature request related to a problem? Please describe.
I am implementing a tool to transform an expression using
parser.parseExpression
,traverse
,types.X
andgenerate(exp)
. This tool should be directly used on the web however @babel/standalone doesn't export these toolings.Describe the solution you'd like
Directly export babel tooling in @babel/standalone(and @babel/core, since @babel/standalone just imports from it).
Describe alternatives you've considered
I tried to use
babel.transform
from @babel/standalone. But an expression will be treated as a statement by babel or trigger a parsing error(like{ a, b: 3, ...obj }
).The text was updated successfully, but these errors were encountered: