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.
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 onCodeBlock
, we need to revert to a solution that a) offers synchronous imports, and b) doesn't pollute the global space withwindow.PrismJS
.