Hear me out! @vite.dev plugin `vite-plugin-svelte-docgen` What could be potentially more desired by you, @svelte.dev developer? 1. Transforming compiled output of `*.svelte` file to add `__docgen` key with data 2. Creating virtual modules `virtual:./Button.docgen.js`?
Post
You could make it importable from '~svelte-docgen:some/file/path.svelte', a bit like unplugin-icons work. github.com/unplugin/unp...
github.comGitHub - unplugin/unplugin-icons: 🤹 Access thousands of icons as components on-demand universally.🤹 Access thousands of icons as components on-demand universally. - unplugin/unplugin-icons
Hmm. That's worth consideration too! CC @ciscorn.bsky.social I have concern that both formats doesn't exactly align with Vite's Virtual Modules Convention: vite.dev/guide/api-pl... I think it should be: `virtual:svelte-docgen:/path/to/component.svelte`? And the virtual module is pure JS. 🤔
vite.devPlugin APINext Generation Frontend Tooling
I've asked this question on Vite public Discord. I'm a little puzzled on this case: discord.com/channels/804...
discord.comDiscord - Group Chat That’s All Fun & GamesDiscord is great for playing games and chilling with friends, or even building a worldwide community. Customize your own space to talk, play, and hang out.
0 reposts0 likes
No replies yet.