#Type definitions generations for vite 3.2.0-beta

1 messages · Page 1 of 1 (latest)

sharp flare
#

I known that the library vite-plugin-dts is not an official library, but currently is the only one that auto create the type definitions when targeting as lib mode, with the release of the new multiple entry point, i would like to correctly generate the definitions according to my folder structure.

What i've followed so far is the type generations from https://www.raulmelo.dev/blog/build-javascript-library-with-multiple-entry-points-using-vite-3 (Only the type generation section, since it's now native),
alghout i was able to get the correct types, when i try to run a project with the library, it says Missing "./[module]" export in "trentim-react-sdk" package because the type path doesnt' match correctly to the files

vite.config.ts

#

I'm creating a gist

sharp flare
#

I was able to solve this problem, i'm going to write a blog post as soon as i can.