Skip to content

The 'standard' for writing a vue component library #9545

You must be logged in to vote

Here's where I build the lib's type for production.

https://github.com/LinusBorg/vue-lib-template/blob/ffabdf3212cfdd57056428dbf7eca0105719c19a/packages/lib/package.json#L32

Also check the other options in package.json for the correct exports of those types.

The playground app doesnt rely on those as its vite config aliases the lib package directly to the lib's src entrypoint during dev, so we don't need to build the lib for the playground.

Replies: 1 comment 6 replies

You must be logged in to vote
6 replies
@quantix-dev

@LinusBorg

Answer selected by quantix-dev
@pavi2410

@johnwc

@derwaldgeist

@skirtles-code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
6 participants