delucis / astro-embed

Low-JavaScript embed components for Astro websites
https://astro-embed.netlify.app
MIT License
189 stars 29 forks source link

MDX integration imports all providers #134

Closed sylvinus closed 1 month ago

sylvinus commented 1 month ago

When using the MDX auto-imports, all embeds CSS files are loaded (YT, vimeo, ...), not just the one being used.

It seems to be the same behaviour that the "standalone installation" fixes: https://astro-embed.netlify.app/components/youtube/#standalone-installation

It might be better to switch the auto-import method here to use standalone installs instead? https://github.com/delucis/astro-embed/blob/96ce82eef9ccbcf228ad2e589d066974899e805f/packages/astro-embed-integration/index.ts#L40

delucis commented 1 month ago

Thanks @sylvinus — closing this as a duplicate of https://github.com/delucis/astro-auto-import/issues/43