#web support for @discordjs/collection
37 messages · Page 1 of 1 (latest)
What about /collection isn’t web compatible?
personally, i have a /vendor folder for all third-party dependencies
developed on the node environment, not directly for web, we need to compile it
that's why i propose a .min.js on a cdn
Out of curiousity what's a use case?
That’s not how that works. /collection is web compatible since it doesn’t rely on any node specific code
Yes and it ships the compiled js when installed
installed with node, npm
even if it didn’t it’s not the responsibility of the package maintainer but the web bundler
yes it's great but still in ts
i just a request a cdn js
I wonder if there just is a cdn that compiles ts
i talked about github action
anyways it's not NEEDED but would be practical, i will do a pull request and i will see
wouldn't it be better to use the compiled version from npm? since that is js
I still don't understand why you don't just use a bundler
because all my scripts are imported by script tags
There is no need for a pull request, as already stated the package is web compatible. I have used it in web environments and it works
It comes compiled
like all other frameworks
so use the compiled version from npm, that's what is installed in nodejs anyway since it doesn't run ts directly either
https://cdn.jsdelivr.net/npm/@discordjs/[email protected]/dist/index.min.js
The package ships the compiled js
thanks
it's what i asked
i didn't know it was done
subject resolved
yes but it wasn't on the github and i didnt find the jsdelivr one, pretty hidden
It’s not on the GitHub bc packages aren’t supposed to host build artifacts in source control
yes, i checked releases