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

Remove dev dependency on react-map-gl v5 #8618

Merged
merged 2 commits into from
Mar 11, 2024
Merged

Conversation

Pessimistress
Copy link
Collaborator

@Pessimistress Pessimistress commented Mar 10, 2024

Background

Previously the scripting bundle imports the mapbox wrapper from react-map-gl v5. That version is no longer being maintained. This PR ports the wrapper class to TS and removes the dev dependency.

Saves ~30k off the core bundle.

Change List

  • Adds MapWrapper class for scripting bundle
  • Remove dev dependency on react-map-gl v5

@coveralls
Copy link

Coverage Status

coverage: 81.455% (-0.1%) from 81.569%
when pulling 23666ca on x/react-map-gl
into 29980be on master.

Copy link
Collaborator

@chrisgervang chrisgervang left a comment

Choose a reason for hiding this comment

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

Nice! I guess scripting doesn't need most of the features in the full wrapper. Does this change any behavior?

@Pessimistress
Copy link
Collaborator Author

Does this change any behavior?

Not intentionally.

@Pessimistress Pessimistress merged commit e31036e into master Mar 11, 2024
3 checks passed
@Pessimistress Pessimistress deleted the x/react-map-gl branch March 11, 2024 09:10
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.

3 participants