Can minimize?
bscheshirwork opened this issue ยท 3 comments
bscheshirwork commented
I'm nube on react and js modules. I try to use it package. In developer env all is ok.
import Runes from 'runes';
Runes.substr(this.props.text, 0, 1)
but if I try to build I got some error:
/var/www/react-js # npm run build
> react-comment@0.1.0 build /var/www/react-js
> node scripts/build.js
Creating an optimized production build...
Failed to compile.
Failed to minify the code from this file:
./node_modules/runes/index.js:45
Read more here: http://bit.ly/2tRViJ9
edhenderson commented
Did you ever resolve this?
bscheshirwork commented
stale issue
intmainreturn00 commented
Worked for me with latest react & this lib:
npm install runes
npm i --save-dev @types/runes
import runes from "runes";
<p>{runes("Emoji ๐ค")}</p>
<p>{runes("๐ฉโ๐ฉโ๐งโ๐ฆ")}</p>
npm run build
Creating an optimized production build...
Compiled with warnings. (but thats my warnings, not the library)
builds with gh-pages as well