dotcypress/runes

Can minimize?

bscheshirwork opened this issue ยท 3 comments

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

Did you ever resolve this?

stale issue

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