After updating an existing React app lxkns to react-scripts 5.0.0 the documented method of using mdx-loader with babel-loader
import AboutMDX from "!babel-loader!mdx-loader!./About.mdx"
does not work anymore. AboutMDX contains a string which is the path name to the Javascript file compiled from the .mdx source, but not the required React component or function.