Closed Oleksii14 closed 9 months ago
@Oleksii14 Hay, boys, vite not supported require, you can modify your vite.config, use
optimizeDeps: { include: 'package name' }
, but this repo also not support vite, because it dependence class.extend, fortunately, the author is rebuilding and looking forawrd to the new version🙏
class.extend was removed in v1.3.1 of this plugin, so there should no longer be an error thrown on import. As @Sube-py notes, you also need to include optimizeDeps: { include: [ '@silvermine/videojs-quality-selector' ] }
in your Vite config. Thanks!
Hi!
According to the documentation and examples, the usage of
videojs-quality-selector
vianpm/yarn
requiresrequire
call which is webpack feature, so it does not work with Vite.Can you push some updates to the core so the module can be imported and used like that:
Thanks in advance.
UPD
Workaround
The package script can be loaded via
unpkg
manually.