Skip to content

Add browser-specific bundle that excludes localFile#9

Merged
cmdcolin merged 1 commit intomainfrom
browser_bundle
Jun 10, 2025
Merged

Add browser-specific bundle that excludes localFile#9
cmdcolin merged 1 commit intomainfrom
browser_bundle

Conversation

@cmdcolin
Copy link
Copy Markdown
Contributor

This is yet another PR in attempting better ESM support. I am hoping to bring it to a close

This PR adds a browser specific build that excludes the LocalFile class

This actually requires jbrowse-components to mock the LocalFile, because it uses the browser-specific bundle in jest, but also uses LocalFile in jest as part of various "fetch mocks"

@cmdcolin
Copy link
Copy Markdown
Contributor Author

tested and works in next.js, jbrowse-components with mock, and also works with jbrowse-desktop

@cmdcolin cmdcolin merged commit 21c40e5 into main Jun 10, 2025
1 check passed
@cmdcolin cmdcolin deleted the browser_bundle branch June 10, 2025 18:45
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.

1 participant