I'm currently trying to compile ES6 using Babel and Browserify. The VideoJS blog post suggests something like this should work:
import videojs from 'video.js';
import 'videojs-youtube';
However I'm getting the following error during bundling:
[00:36:38] Browserify Error { [Error: Cannot find module 'videojs' from '/Users/path/to/my/node_modules/videojs-youtube/dist']
Is the VideoJS YouTube plugin compatible with ES6/Babel in the way suggested by the VideoJS blog post?
I'm currently trying to compile ES6 using Babel and Browserify. The VideoJS blog post suggests something like this should work:
However I'm getting the following error during bundling:
Is the VideoJS YouTube plugin compatible with ES6/Babel in the way suggested by the VideoJS blog post?