florian-lefebvre / astro-integration-kit

A package that contains utilities to help you build Astro integrations.

Home Page:https://astro-integration-kit.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

update addVirtualImports to allow specifiying ssr

florian-lefebvre opened this issue · comments

It's possible to give a different virtual module for the same import id depending on whether it's ssr or not, see https://github.com/florian-lefebvre/astro-i18n/blob/main/package/src/integration.ts#L131-L197. That's probably a breaking change but that's a powerful feature.