The goal here is to allow systems to import the plugin as a module directly, without being forced to load the build as a globally scoped script, while maintaining that use case.
Ran npm update to get gulp running on latest MacOS and patch vulnerabilities
Renamed main.js to annotation_comments.js and removed IIFE
AnnotationComments is a function that returns a high level class (to be passed to videojs.registerPlugin()) that can be exported as a module
New index.js entry point file is used to load plugin and register it to a global videojs
Pass player instance reference to PlayerComponent superclass instead of getting it from the DOM with ID ref. This way there is no need to access video.js lib within components. Update teardowns to nullify this ref when needed.
Update module.exports to not use the confusing class keys everywhere
Added commonjs support with 3 new build files... cjs.js/cjs.min.js/cjs.js.map
The goal here is to allow systems to import the plugin as a module directly, without being forced to load the build as a globally scoped script, while maintaining that use case.
class
keys everywhere