Skip to content

Commit e5e937a

Browse files
authored
remove mapbox from the build (#141)
* remove mapbox from the build * upgrade dependencies
1 parent 431d09a commit e5e937a

File tree

8 files changed

+274
-140
lines changed

8 files changed

+274
-140
lines changed

.changeset/sour-fans-bathe.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-three-map": patch
3+
---
4+
5+
Remove `react-map-gl/mapbox` from the build.

example-mapbox/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
"@react-three/drei": "^9.77.10",
1212
"@react-three/fiber": "^8.13.4",
1313
"leva": "^0.9.35",
14-
"mapbox-gl": "^2.15.0",
14+
"mapbox-gl": "^3.10.0",
1515
"react": "^18.2.0",
1616
"react-dom": "^18.2.0",
17-
"react-map-gl": "^7.1.0",
17+
"react-map-gl": "^8.0.1",
1818
"react-three-map": "^0.8.1",
1919
"three": "~0.153.0",
2020
"three-stdlib": "^2.23.10"

example-mapbox/yarn.lock

Lines changed: 107 additions & 56 deletions
Large diffs are not rendered by default.

example-maplibre/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
"@react-three/drei": "^9.77.10",
1212
"@react-three/fiber": "^8.13.4",
1313
"leva": "^0.9.35",
14-
"maplibre-gl": "^3.1.0",
14+
"maplibre-gl": "^4.7.1",
1515
"react": "^18.2.0",
1616
"react-dom": "^18.2.0",
17-
"react-map-gl": "^7.1.0",
17+
"react-map-gl": "8.0.1",
1818
"react-three-map": "^0.8.1",
1919
"three": "~0.153.0",
2020
"three-stdlib": "^2.23.10"

example-maplibre/yarn.lock

Lines changed: 137 additions & 65 deletions
Large diffs are not rendered by default.

stories/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"leva": "^0.9.35",
1717
"luxon": "^3.4.4",
1818
"mapbox-gl": "^3.9.4",
19-
"maplibre-gl": "^5.1.0",
19+
"maplibre-gl": "^4.7.1",
2020
"react": "^18.2.0",
2121
"react-dom": "^18.2.0",
2222
"react-map-gl": "^8.0.1",

stories/yarn.lock

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -821,16 +821,16 @@
821821
rw "^1.3.3"
822822
sort-object "^3.0.3"
823823

824-
"@maplibre/maplibre-gl-style-spec@^23.1.0":
825-
version "23.1.0"
826-
resolved "https://registry.yarnpkg.com/@maplibre/maplibre-gl-style-spec/-/maplibre-gl-style-spec-23.1.0.tgz#ad59731b0547ee0986ba4ccff699894dd60f0650"
827-
integrity sha512-R6/ihEuC5KRexmKIYkWqUv84Gm+/QwsOUgHyt1yy2XqCdGdLvlBWVWIIeTZWN4NGdwmY6xDzdSGU2R9oBLNg2w==
824+
"@maplibre/maplibre-gl-style-spec@^20.3.1":
825+
version "20.4.0"
826+
resolved "https://registry.yarnpkg.com/@maplibre/maplibre-gl-style-spec/-/maplibre-gl-style-spec-20.4.0.tgz#408339e051fb51e022b40af2235e0beb037937ea"
827+
integrity sha512-AzBy3095fTFPjDjmWpR2w6HVRAZJ6hQZUCwk5Plz6EyfnfuQW1odeW5i2Ai47Y6TBA2hQnC+azscjBSALpaWgw==
828828
dependencies:
829829
"@mapbox/jsonlint-lines-primitives" "~2.0.2"
830830
"@mapbox/unitbezier" "^0.0.1"
831831
json-stringify-pretty-compact "^4.0.0"
832832
minimist "^1.2.8"
833-
quickselect "^3.0.0"
833+
quickselect "^2.0.0"
834834
rw "^1.3.3"
835835
tinyqueue "^3.0.0"
836836

@@ -1452,7 +1452,7 @@
14521452
resolved "https://registry.yarnpkg.com/@types/geojson/-/geojson-7946.0.10.tgz#6dfbf5ea17142f7f9a043809f1cd4c448cb68249"
14531453
integrity sha512-Nmh0K3iWQJzniTuPRcJn5hxXkfB1T1pgB89SBig5PlJQU5yocazeu4jATJlaA0GYFKWMqDdvYemoSnF2pXgLVA==
14541454

1455-
"@types/geojson@^7946.0.15", "@types/geojson@^7946.0.16":
1455+
"@types/geojson@^7946.0.14", "@types/geojson@^7946.0.15":
14561456
version "7946.0.16"
14571457
resolved "https://registry.yarnpkg.com/@types/geojson/-/geojson-7946.0.16.tgz#8ebe53d69efada7044454e3305c19017d97ced2a"
14581458
integrity sha512-6C8nqWur3j98U6+lXDfTUWIfgvZU+EumvpHKcYjujKH7woYyLj2sUmff0tRhrqM7BohUw7Pz3ZB1jj2gW9Fvmg==
@@ -2252,7 +2252,7 @@ draco3d@^1.4.1:
22522252
resolved "https://registry.yarnpkg.com/draco3d/-/draco3d-1.5.6.tgz#0d570a9792e3a3a9fafbfea065b692940441c626"
22532253
integrity sha512-+3NaRjWktb5r61ZFoDejlykPEFKT5N/LkbXsaddlw6xNSXBanUYpFc2AXXpbJDilPHazcSreU/DpQIaxfX0NfQ==
22542254

2255-
earcut@^3.0.0, earcut@^3.0.1:
2255+
earcut@^3.0.0:
22562256
version "3.0.1"
22572257
resolved "https://registry.yarnpkg.com/earcut/-/earcut-3.0.1.tgz#f60b3f671c5657cca9d3e131c5527c5dde00ef38"
22582258
integrity sha512-0l1/0gOjESMeQyYaK5IDiPNvFeu93Z/cO0TjZh9eZ1vyCtZnA7KMZ8rQggpsJHIbGSdrqYq9OhuveadOVHCshw==
@@ -3218,10 +3218,10 @@ mapbox-gl@^3.9.4:
32183218
tinyqueue "^3.0.0"
32193219
vt-pbf "^3.1.3"
32203220

3221-
maplibre-gl@^5.1.0:
3222-
version "5.1.0"
3223-
resolved "https://registry.yarnpkg.com/maplibre-gl/-/maplibre-gl-5.1.0.tgz#201459a840519033147ff054cdb1ab5539a34d2d"
3224-
integrity sha512-6lbf7qAnqAVm1T/vJBMmRtP+g8G/O/Z52IBtWX31SbFj7sEdlrk4YugxJen8IdV/pFjLFnDOw7HiHZl5nYdVjg==
3221+
maplibre-gl@^4.7.1:
3222+
version "4.7.1"
3223+
resolved "https://registry.yarnpkg.com/maplibre-gl/-/maplibre-gl-4.7.1.tgz#06a524438ee2aafbe8bcd91002a4e01468ea5486"
3224+
integrity sha512-lgL7XpIwsgICiL82ITplfS7IGwrB1OJIw/pCvprDp2dhmSSEBgmPzYRvwYYYvJGJD7fxUv1Tvpih4nZ6VrLuaA==
32253225
dependencies:
32263226
"@mapbox/geojson-rewind" "^0.5.2"
32273227
"@mapbox/jsonlint-lines-primitives" "^2.0.2"
@@ -3230,14 +3230,14 @@ maplibre-gl@^5.1.0:
32303230
"@mapbox/unitbezier" "^0.0.1"
32313231
"@mapbox/vector-tile" "^1.3.1"
32323232
"@mapbox/whoots-js" "^3.1.0"
3233-
"@maplibre/maplibre-gl-style-spec" "^23.1.0"
3234-
"@types/geojson" "^7946.0.16"
3233+
"@maplibre/maplibre-gl-style-spec" "^20.3.1"
3234+
"@types/geojson" "^7946.0.14"
32353235
"@types/geojson-vt" "3.2.5"
32363236
"@types/mapbox__point-geometry" "^0.1.4"
32373237
"@types/mapbox__vector-tile" "^1.3.4"
32383238
"@types/pbf" "^3.0.5"
32393239
"@types/supercluster" "^7.1.3"
3240-
earcut "^3.0.1"
3240+
earcut "^3.0.0"
32413241
geojson-vt "^4.0.2"
32423242
gl-matrix "^3.4.3"
32433243
global-prefix "^4.0.0"
@@ -4196,6 +4196,11 @@ queue-microtask@^1.2.2:
41964196
resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243"
41974197
integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==
41984198

4199+
quickselect@^2.0.0:
4200+
version "2.0.0"
4201+
resolved "https://registry.yarnpkg.com/quickselect/-/quickselect-2.0.0.tgz#f19680a486a5eefb581303e023e98faaf25dd018"
4202+
integrity sha512-RKJ22hX8mHe3Y6wH/N3wCM6BWtjaxIyyUIkpHOvfFnxdI4yD4tBXEBKSbriGujF6jnSVkJrffuo6vxACiSSxIw==
4203+
41994204
quickselect@^3.0.0:
42004205
version "3.0.0"
42014206
resolved "https://registry.yarnpkg.com/quickselect/-/quickselect-3.0.0.tgz#a37fc953867d56f095a20ac71c6d27063d2de603"

vite.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export default defineConfig({
5555
'react/jsx-runtime',
5656
"react-dom",
5757
"react-map-gl",
58+
"react-map-gl/mapbox",
5859
"react-map-gl/maplibre",
5960
"three",
6061
]

0 commit comments

Comments
 (0)