vue-lazy-youtube-video
vue-lazy-youtube-video copied to clipboard
Vue 3 support
trafficstars
Hello, thank you for this great component. I've been using it extensively in my projects and due to the need of having it available in Vue 3, here is my rewrite of it to support Vue 3.
Noteworthy changes:
- The component itself and the demo are now written as SFC in composition API style;
- Vitest is now used instead Jest for testing;
- Vite is used for the demo and bundling for NPM;
testNPM script now runs prettier, type checking and unit testing;- Dependencies upgraded to newer versions.
vue-lazy-youtube-video.min.js is bundled in two phases because JS from Vue's SFC is not touched by TypeScript, but originally the compilation target was set to es5, and I tried to meet this requirement.
@andreww2012 amazing :exploding_head:! Thanks a ton for your contribution. I will review it in 2-3 days.
Hey @andrewvasilchuk any chance you review this one? 🙏