-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
In memory output of Build API (adding write: boolean) #139
Comments
I would like to do this. The underlying transport mechanism for the API is already built this way, but the API currently only exposes the ability to transform a single file. So it's definitely possible to do this. |
@evanw Ref your question in #183 I did some quick benchmarks in my test suite.
I think this will improve with another 10-20ms if I can skip the tmp file. Anyway these are great improvements. The only thing currently keeping me from getting rid og babel in jest is getting jest.mock working on external libraries. |
@evanw this is amazing i will try once theres new version 👍🥳 |
Version 0.5.22 with this change has now been published. |
same as rollup theres write and generate function
write is to persist or write file to disk
generate is to output string or objects like code, map
this is useful if someone will create a plugin or any tools using esbuild
i did jest transformer (https://github.com/aelbore/esbuild-jest),
im using rollup and rollup-plugin-esbuild then sync-rpc to wrap the async
it would be good if build api would output result string
The text was updated successfully, but these errors were encountered: