sdp-transform icon indicating copy to clipboard operation
sdp-transform copied to clipboard

esm support

Open jimmywarting opened this issue 4 years ago • 6 comments

Would very much like to just simply use (async) import from a CDN without bundling the code

jimmywarting avatar Feb 13 '21 12:02 jimmywarting

FWIW - I forked and created https://www.npmjs.com/package/@bengreenier/sdp-transform (gh link) for my needs, I'm no ESM expert but I think it's sufficient for most ESM use cases.

bengreenier avatar Apr 24 '23 21:04 bengreenier

why didn't you just send a PR and stick to plain vanilla javascript and some jsDoc? i think typescript syntax is unnecessary, more complicated and require compiling, which is unnecessary, not the original code, so it's then also harder to debug.

jimmywarting avatar Apr 25 '23 10:04 jimmywarting

I wanted my fork to be typescript 🤷‍♂️ feel free to ignore it and/or do those things yourself.

bengreenier avatar Apr 25 '23 15:04 bengreenier

@bengreenier does your fork have a release I could just download and import without NPM?

lostmsu avatar Aug 11 '23 18:08 lostmsu

@bengreenier does your fork have a release I could just download and import without NPM?

Like a standalone GitHub release? Unfortunately it currently does not. Though I suppose you could grab the tarball from npm, same as you could for this original package. Maybe something like https://stackoverflow.com/questions/15035786/download-source-from-npm-without-installing-it would meet your needs?

bengreenier avatar Aug 11 '23 18:08 bengreenier