Create a library using Vite lib mode
Автор: Alvaro Dev Labs
Загружено: 2022-11-10
Просмотров: 24478
Most of the tutorials out there are pretty much a basic HelloWorld, but did you know you can also create professional OSS libraries using Vite Lib Mode?
Vite lib mode allows you to easily generate esm, umd, iife bundles as a library, generate proper typescript declarations and be ready for npm publish
Resources
ViteJS lib mode https://vitejs.dev/guide/build.html#l...
I'm also happy to announce that I will be talking at NuxtNation conference on the 16th & 17th of November 2022 on "How to add 3D to your Nuxt website using ThreeJS"
Claim your FREE ticket here https://bit.ly/3t4ELkv
If you have any questions please share them in the comments, and don't forget to subscribe for more content like this.
Come say hi on Twitter / alvarosabu
----
Our Sponsors
Meet Storyblok (not Storybook which is a different thing) The world's first headless CMS that works for both developers & business users.
I must warn you when you start using it, you will never go back to any other CMS solution
Give it a try at https://t.co/aaEZxcPC4W 😜
00:00 - Intro
01:10 - pnpm workspace
02:19 - Utils package
05:38 - Vite lib mode
09:59 - Create the playground app
11:00 - Testing the lib in the app
19:23 - Typescript declarations
23:34 - More cool stuff on the lib
27:34 - Ehance your lib - Visualizer plugin
29:25 - Outro
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: