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

Download dependencies #270

Closed
jakajancar opened this issue Jul 18, 2020 · 2 comments
Closed

Download dependencies #270

jakajancar opened this issue Jul 18, 2020 · 2 comments

Comments

@jakajancar
Copy link

It would be nice if esbuild could download “http(s)://...” imports (and probably cache them in ~/.cache/esbuild/) while bundling. Then it could be used completely on its own for building projects without external tooling, as long as you just use web-compatible imports and not require() or other node/npm stuff.

@evanw
Copy link
Owner

evanw commented Jul 19, 2020

This will soon be possible by writing an esbuild plugin. You can follow issue #111 to get updates about the upcoming plugin API.

@evanw
Copy link
Owner

evanw commented Nov 11, 2020

Plugin documentation has been released: https://esbuild.github.io/plugins/. You should be able to do this yourself now. There is even an example HTTP plugin as a starting point: https://esbuild.github.io/plugins/#http-plugin.

@evanw evanw closed this as completed Nov 11, 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