From 81f4a8bb4588196226017c5467fd1b9923d66ac1 Mon Sep 17 00:00:00 2001 From: James Milner Date: Wed, 27 Sep 2023 23:09:32 +0100 Subject: [PATCH] resolve bundling issues relating to @turf/jsts in buffer module --- packages/turf-buffer/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/turf-buffer/index.js b/packages/turf-buffer/index.js index 60a367b7f9..f1d9ea0698 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. *