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

trebuchet-client available via CDN for non-NPM project? #4

Open
shah opened this issue Feb 27, 2022 · 2 comments
Open

trebuchet-client available via CDN for non-NPM project? #4

shah opened this issue Feb 27, 2022 · 2 comments

Comments

@shah
Copy link

shah commented Feb 27, 2022

@mattkrick this library seems fantastic, good work putting it together. I've rolled my own SSE client library and would love to drop mine for yours.

However, trebuchet-clietn assumes that NPM and NodeJS are the build tools. I'm using vanilla HTML without NPM and was curious if the library could be made to work via a CDN? It's available on most major JS CDNs but importing the script generates the following:

image

How would one use the library in a vanilla HTML, zero-framework, no builds setting via CDN?

@mattkrick
Copy link
Owner

ah, you'll probably want to fork & build for esm or umd

@shah
Copy link
Author

shah commented Mar 2, 2022

Got it, @mattkrick - thanks for the quick reply. Any chance you might be interested in a sponsored project to do that? Would love to have a CDN-based library that I could use in Deno or the browser without having to do anything in Node.

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