gabzim / circle-to-polygon

Receives a Coordinate, a Radius and a Number of edges and aproximates a circle by creating a polygon that fills its area
ISC License
113 stars 29 forks source link

ES6 syntax breaks uglify() #3

Closed doug-numetric closed 6 years ago

doug-numetric commented 6 years ago

The use of ES6 syntax let here: https://github.com/arg20/circle-to-radius/blob/master/index.js#L27 and here: https://github.com/arg20/circle-to-radius/blob/master/index.js#L32

breaks uglify. You are careful to use var and ES5 syntax throughout the rest of the file. I suspect this was an oversight.

doug-numetric commented 6 years ago

Looks like you have a Pull request to fix this.

gabzim commented 6 years ago

Merged! thanks for the heads up.

gabzim commented 6 years ago

Published to npm as v1.0.2