-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Export babel tooling packages in @babel/standalone
#11696
Conversation
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/56343 |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 4c0d45a:
|
I ran in to a need for this today :) |
4c0d45a
to
e235c35
Compare
e235c35
to
e2ead15
Compare
This comment was marked as outdated.
This comment was marked as outdated.
e2ead15
to
e2eeddd
Compare
Thanks! |
I dislike how this can create confusion between Given that the need is only in |
I agree with this! |
Does this mean doing this in |
hm, I'm mostly hoping for a way to not using Last I tried this, it seemed some custom build was required (which isn't fun 😅 ), due to |
@liuxingbaoyu No, only for standalone. If you are using a bundler or running on Node.js, you can just
@NullVoxPopuli We use |
I am implementing a tool to transform an expression using
parser.parseExpression
,traverse
,types.X
andgenerate(exp)
. This tool is used on the web browser however @babel/standalone doesn't export these toolings. Thus I want to directly export babel tooling in @babel/standalone(and @babel/core, since @babel/standalone just imports from it).