DEV Community

Discussion on: Creating a Vue.js component library: Part I - Introduction

Collapse
 
adi518 profile image
Adi Sahar • Edited

I don't recommend building libraries with the Vue CLI, because it doesn't use Rollup for ESM (tree-shaking) and also because it doesn't externalize all dependencies, which means your library is bloated with unnecessary distributions of the dependencies you used. I suggest looking up a CLI, similar to TSDX and using that instead.

Collapse
 
shanwshaw profile image
shawnshaw

github.com/team-innovation/vue-sfc... ? any better alternatives?

Collapse
 
adi518 profile image
Adi Sahar • Edited

That could work. I like to stick to the mainstream tooling though (more future-proof). There's also the new cli tool Vite.