twilio / twilio-video.js

Twilio’s Programmable Video JavaScript SDK
https://www.twilio.com/docs/video/javascript
Other
571 stars 217 forks source link

Twilio future development discussion: esm & following node release schedule #1527

Open Niputi opened 3 years ago

Niputi commented 3 years ago

Code to reproduce the issue:

https://github.com/Niputi/vite-tests/tree/twilio-video

Expected behavior:

I see the package.json of this module declares that it can be used from version 0.12 of node.js. if modules code structure would be following node release schedule, it would help help with https://github.com/twilio/twilio-video.js/issues/1272

Actual behavior:

can't use twilio modules in esm environment without workarounds

TODO

Software versions:

charliesantos commented 3 years ago

@Niputi thanks for this suggestion! This is definitely an improvement and our team will consider it. However, this is currently low in priority due to other higher priority product features. But we can keep this open and continue the discussion.

acupofspirt commented 3 years ago

+1 More and more VueJS projects are migrating now from vue-cli (Webpack) to vite (Rollup). There is a real demand for twilio js sdk to be bundler-agnostic.

@Niputi could you tell what workarounds have you managed to find?

charliesantos commented 3 years ago

I submitted an internal ticket to investigate this further.

acupofspirt commented 3 years ago

@charliesantos any updates?

ju4n97 commented 3 years ago

I'm getting this kind of error when I try to use twilio-video^2.16.0 with sveltekit or Angular 12

Sveltekit image

Angular12 image

Is there any workaround to this?

Miserlou commented 2 years ago

Is this project still being actively developed? Would really, really like ESM.