Question: Does markdown-to-jsx/dist/esm.js file have an issue when minified?
See original GitHub issueHi I’m using react-styleguidist which uses markdown-to-jsx to render the markdown files. I started getting an error in the console which says: Uncaught ReferenceError: returntrue is not defined
on opening the dev tools it looks like there is an issue here:
Is this an open issue?
Here’s the version:
"markdown-to-jsx": { "version": "6.8.1", "resolved": "resolved url", "integrity": "SHA token", "dev": true, "requires": { "prop-types": "^15.6.2", "unquote": "^1.1.0" } },
Thank you in advance for taking the time to look at this. Apologize in advance if I haven’t followed a bug opening template. I’d be more than happy to reopen this in the correct template.
Regards, Nishant
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (4 by maintainers)
Try 6.8.2
Ah I see. So in esm.js the relevant code is:
And the bundler is likely replacing
process.env.NODE_ENV
with'development'
.And then perhaps the minifier is running a second time and since
'production' !== 'development'
istrue
, it’s replacing it without adding a necessary space back?