mapbox / polylabel

A fast algorithm for finding the pole of inaccessibility of a polygon (in JavaScript and C++)
Other
1.44k stars 151 forks source link

Use ES-modules instead of CommonJS or AMD #74

Closed dennisheer closed 4 months ago

dennisheer commented 4 years ago

Compiling with Angular CLI version greater than 10 results in a warning by the Angular compiler. This is caused by the usage of CommonJS or AMD dependencies within this package or its dependencies.

Screenshot 2020-10-21 at 16 04 50

Can you provide a version of your module only using ES-modules? I'm currently using version 1.1.0 of polylabel.

mourner commented 4 months ago

Done in https://github.com/mapbox/polylabel/commit/93787d50a6f6a492beac705584d39f59ca112aa0 (will be released in v2.0.0 shortly)