Skip to content

Make @annotorious/openseadragon a peerDependency of @annotorious/react#589

Open
blchelle wants to merge 1 commit intoannotorious:mainfrom
blchelle:blchelle/588
Open

Make @annotorious/openseadragon a peerDependency of @annotorious/react#589
blchelle wants to merge 1 commit intoannotorious:mainfrom
blchelle:blchelle/588

Conversation

@blchelle
Copy link
Copy Markdown

@blchelle blchelle commented Nov 10, 2025

Problem

The @annotorious/openseadragon package is currenctly a hard dependency of the @annotorious/react package, even if the consumer has no desire to use the specific components that leverage @annotorious/openseadragon. Being forced to install @annotorious/openseadragon has a negative impact on bundle size, especially because that also requires the consumer to install the openseadragon package.

Changes

  • Move all of the openseadragon dependent code into a separate export @annotorious/react/openseadragon
  • Update the vite config to accomodate this this change.

Note: I believe this will likely require a major version upgrade since we're changing the import path for all of the OpenSeaDragon related components.

Closes #588

},
"peerDependencies": {
"openseadragon": ">= ^4.0.0 || >= ^5.0.0",
"@annotorious/openseadragon": "3.7.14-beta",
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not certain what versions of @annotorious/openseadragon we want to enforce for the peerDependency.

@blchelle
Copy link
Copy Markdown
Author

blchelle commented Jan 5, 2026

Going to close this since it seems like it's not going to get any action.

@blchelle blchelle closed this Jan 5, 2026
@rsimon rsimon reopened this Mar 3, 2026
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.

@annotorious/openseadragon should be an optional peerDependency of @annotorious/react

2 participants