If we have a single Vue 3 component with lang="ts", and we want to host this component on NPM to use it in multiple projects,
it's not 100% clear to me - given the requirements below - how to best use rollup to prepare the component for publishing on NPM.
Requirements:
.d.ts file based on prop types..d.ts creates autocomplete suggestions for props in VSCode when the component is imported into a projectIf there's a concrete example of how to do the above, I believe that would benefit a lot of Vue developers that wanna publish single Vue components!
An example of such an example would be:
<template>// ...
<style>// ...
<script lang="ts">// ...
// required rollup config file contents
# the command we need to execute to rollup the component
// an example of what kind of file is generated based on the above
is there any way I can add some issuehunt funding?
Most helpful comment
is there any way I can add some issuehunt funding?