react-codemirror icon indicating copy to clipboard operation
react-codemirror copied to clipboard

npm distribution has in the src folder a codemirror.js instead of codemirror.jsx

Open arheom opened this issue 9 years ago • 1 comments

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.

arheom avatar Oct 04 '16 14:10 arheom

I can confirm this issue is reproducible and the solution above fixes it.

TheUltDev avatar Oct 22 '16 21:10 TheUltDev