florian-lefebvre / astro-integration-kit

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

Expected `name` field on `addVirtualImports` #96

Closed bholmesdev closed 3 months ago

bholmesdev commented 3 months ago

The latest version expects a name property when creating virtual imports with addVirtualImports(). This is undocumented, and doesn't make much sense given the imports object is used to define virtual module names.

image

Would share a stackblitz, but the TS language server seemed to keep crashing as I tried to repro 😄

florian-lefebvre commented 3 months ago

Indeed I missed the docs update on this one! It was automatically passed before as a plugin but it's now explicit. Thanks for pointing it out!