Created by: zingbretsen
Adds mdx to file loader exclude section
Addresses this issue: https://github.com/facebook/create-react-app/issues/12166
Just edits one line in the webpack config from react-scripts as suggested here: https://github.com/mdx-js/mdx/discussions/1870#discussioncomment-2304871
I made the edit in my local version of webpack.config.js
in react-scripts
which is installed in my project, and that is sufficient to get mdx to work with no errors.
I don't know what other ramifications this might have. I'm not a JS dev, but this solution worked for my problem.