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;
test NPM 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.
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:
test
NPM script now runs prettier, type checking and unit testing;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 toes5
, and I tried to meet this requirement.