Closed ArtskydJ closed 2 years ago
When I tried to use this module with rollup, it included the ESM version of video.js, instead of the CJS.
video.js
Probably because I was using it like this:
import videojs from 'video.js' import 'videojs-hotkeys' // ...
I think since video.js was first included as an ESM module, rollup just kept the ESM version. I'm not 100% sure, and I'm no rollup expert.
But this little code change fixed the issue for me, and shouldn't have any negative effects on folks continuing to use CJS.
When I tried to use this module with rollup, it included the ESM version of
video.js
, instead of the CJS.Probably because I was using it like this:
I think since video.js was first included as an ESM module, rollup just kept the ESM version. I'm not 100% sure, and I'm no rollup expert.
But this little code change fixed the issue for me, and shouldn't have any negative effects on folks continuing to use CJS.