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

fix: repair non-default imports #348

Merged
merged 1 commit into from
Aug 14, 2024
Merged

fix: repair non-default imports #348

merged 1 commit into from
Aug 14, 2024

Conversation

gka
Copy link
Owner

@gka gka commented Aug 14, 2024

resolves #346

this allows users to import chroma.js both as default package, e.g.

import chroma from 'chroma-js';

or to import individual methods

import { average } from 'chroma-js';
average(['red', 'green']).hex()

@gka gka merged commit 60e072d into main Aug 14, 2024
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

Successfully merging this pull request may close these issues.

Wrong object returned when importing from chroma-js v2.6.0
1 participant