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

feat: Create separate entrypoint for gosling.js/utils #1000

Closed
wants to merge 1 commit into from

Conversation

manzt
Copy link
Member

@manzt manzt commented Nov 29, 2023

Allows import of some whitelisted functions via separate entrypoint:

import { getRelativeGenomicPosition } from 'gosling.js/utils';

...at the cost of some build complexity.

#997 is much more simple because it doesn't require changing our build. This configures esbuild to bundle src/exported-utils.ts into a single file which is imported under gosling.js/utils. I needed to make extra exported-utils files because esbuild was including some dependencies not used by these functions in the final build. .

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.

None yet

1 participant