react-codemirror
react-codemirror copied to clipboard
npm distribution has in the src folder a codemirror.js instead of codemirror.jsx
Inside the dist/src folder, now there is a codemirror.js file which contains jsx code.
The problem I have is, I am using webpack to bundle it, but it complains that cannot process this file, cos it is a js file and does not understand the jsx inside. Not sure why it goes there, but it just fails. I managed to fix it and works well, when I change the extension from .js to .jsx. Afterwards everything worked well.
I can confirm this issue is reproducible and the solution above fixes it.