diff --git a/packages/turf-buffer/index.js b/packages/turf-buffer/index.js index 60a367b7f9..8c51ff419a 100644 --- a/packages/turf-buffer/index.js +++ b/packages/turf-buffer/index.js @@ -1,5 +1,5 @@ import center from "@turf/center"; -import { BufferOp, GeoJSONReader, GeoJSONWriter } from "@turf/jsts"; +import jsts from "@turf/jsts"; import { geomEach, featureEach } from "@turf/meta"; import { geoAzimuthalEquidistant } from "d3-geo"; import { @@ -10,6 +10,8 @@ import { earthRadius, } from "@turf/helpers"; +const { BufferOp, GeoJSONReader, GeoJSONWriter } = jsts; + /** * Calculates a buffer for input features for a given radius. Units supported are miles, kilometers, and degrees. *