florian-lefebvre / astro-integration-kit

A package that contains utilities to help you build Astro integrations.
https://astro-integration-kit.netlify.app
MIT License
54 stars 8 forks source link

How to use dependencies inside virtual imports #4

Open florian-lefebvre opened 7 months ago

florian-lefebvre commented 7 months ago

Needs another export (see astro-env)

Fryuni commented 6 months ago

I went through astro-env's code, it doesn't use a virtual import. What is this issue about?

florian-lefebvre commented 6 months ago

Ah I think it's on the preview branch but that's not the best example. Have a look at those instead:

Basically this avoids having the user to add the dependencies used in your integration to their project, by shipping them alongside the integration

Fryuni commented 6 months ago

Got it. Just like the Codemod this could maybe be automated... Maybe