make not dependant on expressive-code
Closed this issue · 0 comments
o-az commented
Is your feature request related to a problem?
I have a starlight project that disables expressiveCode
. As a result, this package ends up not working and throwing an error
repro:
https://stackblitz.com/edit/withastro-starlight-1npo2c?file=astro.config.mjs
Describe the solution you'd like
Make package fallback to Code
from 'astro:components'
when expressiveCode
is disabled.
I tried patching and replacing the starlight Code component with the Astro one which worked.
- import { Code, Tabs, TabItem } from '@astrojs/starlight/components'
+ import { Tabs, TabItem } from '@astrojs/starlight/components'
+ import { Code } from 'astro:components'
Describe alternatives you've considered
No response
Additional Context
No response