Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can minimize? #5

Open
bscheshirwork opened this issue Jul 4, 2019 · 3 comments
Open

Can minimize? #5

bscheshirwork opened this issue Jul 4, 2019 · 3 comments

Comments

@bscheshirwork
Copy link

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

> [email protected] 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
Copy link

Did you ever resolve this?

@bscheshirwork
Copy link
Author

stale issue

@intmainreturn00
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants