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

Use es5 syntax so projects can compile this library #5

Closed
wants to merge 1 commit into from

Conversation

mahcloud
Copy link

Solves #4

I think the problem is that uglify assumes your project is compiled down to es5 for browser support.
Most libraries accomplish this by using babel to create a dist version of the library for projects to import via npm. Once this is accomplished, rgb-hex could be converted back to es6.

@SamVerschueren
Copy link

We aim for Node.js, not the browser. You can find a more detailed explanation here sindresorhus/ama#446

Repository owner locked and limited conversation to collaborators Mar 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants