You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that code examples in the documentation appear correct in development but "break" in the production build, likely due to minification. Lene was able to verify this behavior.
The team discussed potential solutions. A worst-case but viable fix would be to rewrite the examples to avoid the problematic pattern.
We have a similar issue with svgs -- (I believe it's this issue #8969)
It was determined that the issue needed a more thorough investigation to understand the root cause before a solution could be implemented.
Next Step: The issue was assigned to @tkajtoch for a deeper investigation to better define the problem and potential solutions.
The underlying issue for this bug is the usage of convertToJsxString to generate the code snippet passed to the <Demo> component. This was likely done due to the simplicity of this approach, but it results in broken demos whenever the JSX input to that function gets minified.
We should use the regular MDX examples and avoid dynamically generated code like this.
Activity
JasonStoltz commentedon Oct 8, 2025
Notes from our Triage session:
The problem is that code examples in the documentation appear correct in development but "break" in the production build, likely due to minification. Lene was able to verify this behavior.
The team discussed potential solutions. A worst-case but viable fix would be to rewrite the examples to avoid the problematic pattern.
We have a similar issue with svgs -- (I believe it's this issue #8969)
It was determined that the issue needed a more thorough investigation to understand the root cause before a solution could be implemented.
Next Step: The issue was assigned to @tkajtoch for a deeper investigation to better define the problem and potential solutions.
tkajtoch commentedon Oct 14, 2025
The underlying issue for this bug is the usage of
convertToJsxStringto generate the code snippet passed to the<Demo>component. This was likely done due to the simplicity of this approach, but it results in broken demos whenever the JSX input to that function gets minified.We should use the regular MDX examples and avoid dynamically generated code like this.
[-][Eui docs] Empty states use cases don't render[/-][+][Docs] Empty states use cases don't render[/+]