Skip to content

Remove geojson-flatten dependency#1066

Merged
stepankuzmin merged 3 commits intomapbox:mainfrom
stevage:no-geojson-flatten
Jun 28, 2024
Merged

Remove geojson-flatten dependency#1066
stepankuzmin merged 3 commits intomapbox:mainfrom
stevage:no-geojson-flatten

Conversation

@stevage
Copy link
Contributor

@stevage stevage commented Aug 20, 2021

This dependency on geojson-flatten (which itself has several more) is easily replaced.

It also turns out many of the tests to constrainFeatureMovement() were supplying faulty Polygon coordinates.

(Motivation: this was causing me some kind of spurious packaging errors when making other changes, the classic Webpack issue with require() and .default etc etc)

@stepankuzmin stepankuzmin requested a review from a team as a code owner June 28, 2024 14:35
Copy link
Contributor

@stepankuzmin stepankuzmin left a comment

Choose a reason for hiding this comment

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

Hey @stevage,

Thanks for the contribution, and sorry for the delayed response. This change also saves 8K in the resulting bundle 👍

@stepankuzmin stepankuzmin merged commit 1c59954 into mapbox:main Jun 28, 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.

2 participants