zendeskgarden / react-components

:seedling: garden React components
https://zendeskgarden.github.io/react-components/
Apache License 2.0
1.1k stars 89 forks source link

fix(typography): revert `react-prism-renderer` to v1 #1915

Closed jzempel closed 2 months ago

jzempel commented 2 months ago

Description

This fix addresses an issue that is particularly problematic in SSR. The asynchronous imports cause a delay with CodeBlock rendering, which throw off internal page links. Given that Garden has SSR consumers relying heavily on CodeBlock, we need to revert to a solution that a) offers synchronous imports, and b) doesn't pollute the global space with window.PrismJS.