MDX support: Ensure development transform is only used in development (#8598)
### Description
Currently MDX files are incorrectly compiled using the development
transform which causes `jsxDev` calls that don't work in production,
this PR ensures MDX follows the JSX setting.
<!--
✍️ Write a short summary of your work.
If necessary, include relevant screenshots.
-->
### Testing Instructions
<!--
Give a quick description of steps to test your changes.
-->