Skip to content
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

Ability to get esbuild output in scripts without reading from FS #220

Closed
timocov opened this issue Jul 4, 2020 · 1 comment
Closed

Ability to get esbuild output in scripts without reading from FS #220

timocov opened this issue Jul 4, 2020 · 1 comment

Comments

@timocov
Copy link

timocov commented Jul 4, 2020

esbuild is awesome and ultra fast tool to bundle JS code, but currently it doesn't do some minifications other tools like terser do (see #218).

esbuild has JS API so we can write simple script to run esbuild and then provide output to terser (for instance), but it seems that there is no option to run esbuild and get output from it without reading outfile manually, so you have to run esbuild first, then read out file and pass it to terser.

It would be nice to return the output from esbuild as returned value (even without writing the result on the disk totally) so we don't need to read it again from FS.

@evanw
Copy link
Owner

evanw commented Jul 4, 2020

I agree that this would be useful. It would also bring the JavaScript API up to parity with the Go API, which can already do this. This is already an existing feature request though, so I'm going to close this as a duplicate of #139.

@evanw evanw closed this as completed Jul 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants