diff --git a/build.js b/build.js index 4469cf7..0865b0f 100644 --- a/build.js +++ b/build.js @@ -66,6 +66,7 @@ esbuild outfile: "dist/backend.js", logLevel: "info", target: "es6", + platform: "browser", watch: { onRebuild(error, result) { if (error) console.error("watch build (code) failed:", error); diff --git a/package.json b/package.json index 3e06d86..e0d9f5b 100644 --- a/package.json +++ b/package.json @@ -38,8 +38,9 @@ "leaflet": "^1.9.4", "leaflet-control-geocoder": "^2.4.0", "linelabel": "^0.1.1", - "osmtogeojson": "3.0.0-beta.5", + "osmtogeojson": "2.2.12", "polylabel": "^1.1.0", "rbush": "^3.0.1" - } + }, + "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" }