From c36d7556f736adb151127db94cf1b0003ca15b5a 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/turf-buffer/index.js b/packages/turf-buffer/index.js index 60a367b7f9..f6f7c666f8 100644 --- a/packages/turf-buffer/index.js +++ b/packages/turf-buffer/index.js @@ -1,5 +1,6 @@ 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 +11,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. *