How to use a lib with Babel in client-side?

Hello,

I am trying to use hls.js lib. I have client folder in my meteor project and i put the hls.js file in client/lib. When I try to load a streaming video, hls.js raises an error. It says: babelHelpers is not defined.

So I googled it around, and i added ecmascript package to meteor (meteor told me that it is already there).

I suppose, I cannot directly send a babel transpiled js to the clients. But I don’t know what to do :slight_smile:

I would really appreciate the help,

Thanks

I added grigio:babel package and changed the extension of the hls.js to hls.jsx and the problem is solved. I know that grigio:babel is deprecated but it works :slight_smile: