From 3189c8f98707ccabbc5868a43c6b25f1dc1cec13 Mon Sep 17 00:00:00 2001 From: Xiaoji Chen Date: Wed, 5 Aug 2026 16:32:36 -0700 Subject: [PATCH] Move to TypeScript v6 --- examples/get-started/basic/package.json | 4 ++-- .../basic/{vite.config.js => vite.config.mjs} | 0 examples/get-started/controlled/package.json | 4 ++-- .../controlled/{vite.config.js => vite.config.mjs} | 0 examples/get-started/hook/package.json | 4 ++-- .../hook/{vite.config.js => vite.config.mjs} | 0 examples/get-started/maplibre/package.json | 4 ++-- examples/get-started/redux/package.json | 4 ++-- .../redux/{vite.config.js => vite.config.mjs} | 0 examples/mapbox/clusters/package.json | 4 ++-- examples/mapbox/clusters/tsconfig.json | 2 +- .../clusters/{vite.config.js => vite.config.mjs} | 0 examples/mapbox/controls/package.json | 4 ++-- examples/mapbox/controls/tsconfig.json | 2 +- .../controls/{vite.config.js => vite.config.mjs} | 0 examples/mapbox/custom-cursor/package.json | 4 ++-- examples/mapbox/custom-cursor/tsconfig.json | 2 +- .../custom-cursor/{vite.config.js => vite.config.mjs} | 0 examples/mapbox/custom-overlay/package.json | 4 ++-- examples/mapbox/custom-overlay/tsconfig.json | 2 +- .../custom-overlay/{vite.config.js => vite.config.mjs} | 0 examples/mapbox/deckgl-overlay/package.json | 4 ++-- examples/mapbox/deckgl-overlay/tsconfig.json | 2 +- .../deckgl-overlay/{vite.config.js => vite.config.mjs} | 0 examples/mapbox/draggable-markers/package.json | 4 ++-- examples/mapbox/draggable-markers/tsconfig.json | 2 +- .../{vite.config.js => vite.config.mjs} | 0 examples/mapbox/draw-polygon/package.json | 4 ++-- examples/mapbox/draw-polygon/tsconfig.json | 2 +- .../draw-polygon/{vite.config.js => vite.config.mjs} | 0 examples/mapbox/filter/package.json | 4 ++-- examples/mapbox/filter/tsconfig.json | 2 +- .../mapbox/filter/{vite.config.js => vite.config.mjs} | 0 examples/mapbox/geocoder/package.json | 4 ++-- examples/mapbox/geocoder/tsconfig.json | 2 +- .../geocoder/{vite.config.js => vite.config.mjs} | 0 examples/mapbox/geojson-animation/package.json | 4 ++-- examples/mapbox/geojson-animation/tsconfig.json | 2 +- .../{vite.config.js => vite.config.mjs} | 0 examples/mapbox/geojson/package.json | 4 ++-- examples/mapbox/geojson/tsconfig.json | 2 +- .../mapbox/geojson/{vite.config.js => vite.config.mjs} | 0 examples/mapbox/heatmap/package.json | 4 ++-- examples/mapbox/heatmap/tsconfig.json | 2 +- .../mapbox/heatmap/{vite.config.js => vite.config.mjs} | 0 examples/mapbox/interaction/package.json | 4 ++-- examples/mapbox/interaction/tsconfig.json | 2 +- .../interaction/{vite.config.js => vite.config.mjs} | 0 examples/mapbox/layers/package.json | 4 ++-- examples/mapbox/layers/tsconfig.json | 2 +- .../mapbox/layers/{vite.config.js => vite.config.mjs} | 0 examples/mapbox/side-by-side/package.json | 4 ++-- examples/mapbox/side-by-side/tsconfig.json | 2 +- .../side-by-side/{vite.config.js => vite.config.mjs} | 0 examples/mapbox/terrain/package.json | 4 ++-- examples/mapbox/terrain/tsconfig.json | 2 +- .../mapbox/terrain/{vite.config.js => vite.config.mjs} | 0 examples/mapbox/viewport-animation/package.json | 4 ++-- examples/mapbox/viewport-animation/tsconfig.json | 2 +- .../{vite.config.js => vite.config.mjs} | 0 examples/mapbox/zoom-to-bounds/package.json | 4 ++-- examples/mapbox/zoom-to-bounds/tsconfig.json | 2 +- .../zoom-to-bounds/{vite.config.js => vite.config.mjs} | 0 examples/maplibre/clusters/package.json | 4 ++-- examples/maplibre/clusters/tsconfig.json | 2 +- examples/maplibre/controls/package.json | 4 ++-- examples/maplibre/controls/tsconfig.json | 2 +- examples/maplibre/custom-cursor/package.json | 4 ++-- examples/maplibre/custom-cursor/tsconfig.json | 2 +- examples/maplibre/custom-overlay/package.json | 4 ++-- examples/maplibre/custom-overlay/tsconfig.json | 2 +- examples/maplibre/deckgl-overlay/package.json | 4 ++-- examples/maplibre/deckgl-overlay/tsconfig.json | 2 +- examples/maplibre/draggable-markers/package.json | 4 ++-- examples/maplibre/draggable-markers/tsconfig.json | 2 +- examples/maplibre/draw-polygon/package.json | 4 ++-- examples/maplibre/draw-polygon/tsconfig.json | 2 +- examples/maplibre/filter/package.json | 4 ++-- examples/maplibre/filter/tsconfig.json | 2 +- examples/maplibre/geocoder/package.json | 4 ++-- examples/maplibre/geocoder/tsconfig.json | 2 +- examples/maplibre/geojson-animation/package.json | 4 ++-- examples/maplibre/geojson-animation/tsconfig.json | 2 +- examples/maplibre/geojson/package.json | 4 ++-- examples/maplibre/geojson/tsconfig.json | 2 +- examples/maplibre/globe/package.json | 4 ++-- examples/maplibre/globe/tsconfig.json | 2 +- examples/maplibre/heatmap/package.json | 4 ++-- examples/maplibre/heatmap/tsconfig.json | 2 +- examples/maplibre/interaction/package.json | 4 ++-- examples/maplibre/interaction/tsconfig.json | 2 +- examples/maplibre/layers/package.json | 4 ++-- examples/maplibre/layers/tsconfig.json | 2 +- examples/maplibre/side-by-side/package.json | 4 ++-- examples/maplibre/side-by-side/tsconfig.json | 2 +- examples/maplibre/terrain/package.json | 4 ++-- examples/maplibre/terrain/tsconfig.json | 2 +- examples/maplibre/viewport-animation/package.json | 4 ++-- examples/maplibre/viewport-animation/tsconfig.json | 2 +- examples/maplibre/zoom-to-bounds/package.json | 4 ++-- examples/maplibre/zoom-to-bounds/tsconfig.json | 2 +- examples/vite.config.local.js | 6 ++++-- test/apps/reuse-maps/tsconfig.json | 2 +- tsconfig.json | 10 ++++------ 104 files changed, 130 insertions(+), 130 deletions(-) rename examples/get-started/basic/{vite.config.js => vite.config.mjs} (100%) rename examples/get-started/controlled/{vite.config.js => vite.config.mjs} (100%) rename examples/get-started/hook/{vite.config.js => vite.config.mjs} (100%) rename examples/get-started/redux/{vite.config.js => vite.config.mjs} (100%) rename examples/mapbox/clusters/{vite.config.js => vite.config.mjs} (100%) rename examples/mapbox/controls/{vite.config.js => vite.config.mjs} (100%) rename examples/mapbox/custom-cursor/{vite.config.js => vite.config.mjs} (100%) rename examples/mapbox/custom-overlay/{vite.config.js => vite.config.mjs} (100%) rename examples/mapbox/deckgl-overlay/{vite.config.js => vite.config.mjs} (100%) rename examples/mapbox/draggable-markers/{vite.config.js => vite.config.mjs} (100%) rename examples/mapbox/draw-polygon/{vite.config.js => vite.config.mjs} (100%) rename examples/mapbox/filter/{vite.config.js => vite.config.mjs} (100%) rename examples/mapbox/geocoder/{vite.config.js => vite.config.mjs} (100%) rename examples/mapbox/geojson-animation/{vite.config.js => vite.config.mjs} (100%) rename examples/mapbox/geojson/{vite.config.js => vite.config.mjs} (100%) rename examples/mapbox/heatmap/{vite.config.js => vite.config.mjs} (100%) rename examples/mapbox/interaction/{vite.config.js => vite.config.mjs} (100%) rename examples/mapbox/layers/{vite.config.js => vite.config.mjs} (100%) rename examples/mapbox/side-by-side/{vite.config.js => vite.config.mjs} (100%) rename examples/mapbox/terrain/{vite.config.js => vite.config.mjs} (100%) rename examples/mapbox/viewport-animation/{vite.config.js => vite.config.mjs} (100%) rename examples/mapbox/zoom-to-bounds/{vite.config.js => vite.config.mjs} (100%) diff --git a/examples/get-started/basic/package.json b/examples/get-started/basic/package.json index 5953329bf..cdfbd8360 100644 --- a/examples/get-started/basic/package.json +++ b/examples/get-started/basic/package.json @@ -10,7 +10,7 @@ "mapbox-gl": "^3.5.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/get-started/basic/vite.config.js b/examples/get-started/basic/vite.config.mjs similarity index 100% rename from examples/get-started/basic/vite.config.js rename to examples/get-started/basic/vite.config.mjs diff --git a/examples/get-started/controlled/package.json b/examples/get-started/controlled/package.json index 5953329bf..cdfbd8360 100644 --- a/examples/get-started/controlled/package.json +++ b/examples/get-started/controlled/package.json @@ -10,7 +10,7 @@ "mapbox-gl": "^3.5.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/get-started/controlled/vite.config.js b/examples/get-started/controlled/vite.config.mjs similarity index 100% rename from examples/get-started/controlled/vite.config.js rename to examples/get-started/controlled/vite.config.mjs diff --git a/examples/get-started/hook/package.json b/examples/get-started/hook/package.json index 5953329bf..cdfbd8360 100644 --- a/examples/get-started/hook/package.json +++ b/examples/get-started/hook/package.json @@ -10,7 +10,7 @@ "mapbox-gl": "^3.5.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/get-started/hook/vite.config.js b/examples/get-started/hook/vite.config.mjs similarity index 100% rename from examples/get-started/hook/vite.config.js rename to examples/get-started/hook/vite.config.mjs diff --git a/examples/get-started/maplibre/package.json b/examples/get-started/maplibre/package.json index 94098115e..da61a819f 100644 --- a/examples/get-started/maplibre/package.json +++ b/examples/get-started/maplibre/package.json @@ -10,7 +10,7 @@ "react-map-gl": "^8.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/get-started/redux/package.json b/examples/get-started/redux/package.json index 65d27ba44..541a930f5 100644 --- a/examples/get-started/redux/package.json +++ b/examples/get-started/redux/package.json @@ -11,7 +11,7 @@ "mapbox-gl": "^3.5.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/get-started/redux/vite.config.js b/examples/get-started/redux/vite.config.mjs similarity index 100% rename from examples/get-started/redux/vite.config.js rename to examples/get-started/redux/vite.config.mjs diff --git a/examples/mapbox/clusters/package.json b/examples/mapbox/clusters/package.json index a9b9c1af1..f834b24ec 100644 --- a/examples/mapbox/clusters/package.json +++ b/examples/mapbox/clusters/package.json @@ -11,7 +11,7 @@ "mapbox-gl": "^3.5.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/mapbox/clusters/tsconfig.json b/examples/mapbox/clusters/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/mapbox/clusters/tsconfig.json +++ b/examples/mapbox/clusters/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/mapbox/clusters/vite.config.js b/examples/mapbox/clusters/vite.config.mjs similarity index 100% rename from examples/mapbox/clusters/vite.config.js rename to examples/mapbox/clusters/vite.config.mjs diff --git a/examples/mapbox/controls/package.json b/examples/mapbox/controls/package.json index a9b9c1af1..f834b24ec 100644 --- a/examples/mapbox/controls/package.json +++ b/examples/mapbox/controls/package.json @@ -11,7 +11,7 @@ "mapbox-gl": "^3.5.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/mapbox/controls/tsconfig.json b/examples/mapbox/controls/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/mapbox/controls/tsconfig.json +++ b/examples/mapbox/controls/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/mapbox/controls/vite.config.js b/examples/mapbox/controls/vite.config.mjs similarity index 100% rename from examples/mapbox/controls/vite.config.js rename to examples/mapbox/controls/vite.config.mjs diff --git a/examples/mapbox/custom-cursor/package.json b/examples/mapbox/custom-cursor/package.json index a9b9c1af1..f834b24ec 100644 --- a/examples/mapbox/custom-cursor/package.json +++ b/examples/mapbox/custom-cursor/package.json @@ -11,7 +11,7 @@ "mapbox-gl": "^3.5.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/mapbox/custom-cursor/tsconfig.json b/examples/mapbox/custom-cursor/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/mapbox/custom-cursor/tsconfig.json +++ b/examples/mapbox/custom-cursor/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/mapbox/custom-cursor/vite.config.js b/examples/mapbox/custom-cursor/vite.config.mjs similarity index 100% rename from examples/mapbox/custom-cursor/vite.config.js rename to examples/mapbox/custom-cursor/vite.config.mjs diff --git a/examples/mapbox/custom-overlay/package.json b/examples/mapbox/custom-overlay/package.json index 0124955e4..d582fd760 100644 --- a/examples/mapbox/custom-overlay/package.json +++ b/examples/mapbox/custom-overlay/package.json @@ -12,7 +12,7 @@ "mapbox-gl": "^3.5.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/mapbox/custom-overlay/tsconfig.json b/examples/mapbox/custom-overlay/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/mapbox/custom-overlay/tsconfig.json +++ b/examples/mapbox/custom-overlay/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/mapbox/custom-overlay/vite.config.js b/examples/mapbox/custom-overlay/vite.config.mjs similarity index 100% rename from examples/mapbox/custom-overlay/vite.config.js rename to examples/mapbox/custom-overlay/vite.config.mjs diff --git a/examples/mapbox/deckgl-overlay/package.json b/examples/mapbox/deckgl-overlay/package.json index e39e1f5e0..1093ee426 100644 --- a/examples/mapbox/deckgl-overlay/package.json +++ b/examples/mapbox/deckgl-overlay/package.json @@ -12,7 +12,7 @@ "mapbox-gl": "^3.5.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/mapbox/deckgl-overlay/tsconfig.json b/examples/mapbox/deckgl-overlay/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/mapbox/deckgl-overlay/tsconfig.json +++ b/examples/mapbox/deckgl-overlay/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/mapbox/deckgl-overlay/vite.config.js b/examples/mapbox/deckgl-overlay/vite.config.mjs similarity index 100% rename from examples/mapbox/deckgl-overlay/vite.config.js rename to examples/mapbox/deckgl-overlay/vite.config.mjs diff --git a/examples/mapbox/draggable-markers/package.json b/examples/mapbox/draggable-markers/package.json index 4c0575773..5aee1278b 100644 --- a/examples/mapbox/draggable-markers/package.json +++ b/examples/mapbox/draggable-markers/package.json @@ -11,7 +11,7 @@ "react-map-gl": "^8.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/mapbox/draggable-markers/tsconfig.json b/examples/mapbox/draggable-markers/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/mapbox/draggable-markers/tsconfig.json +++ b/examples/mapbox/draggable-markers/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/mapbox/draggable-markers/vite.config.js b/examples/mapbox/draggable-markers/vite.config.mjs similarity index 100% rename from examples/mapbox/draggable-markers/vite.config.js rename to examples/mapbox/draggable-markers/vite.config.mjs diff --git a/examples/mapbox/draw-polygon/package.json b/examples/mapbox/draw-polygon/package.json index 144ecc36c..678f718b6 100644 --- a/examples/mapbox/draw-polygon/package.json +++ b/examples/mapbox/draw-polygon/package.json @@ -14,7 +14,7 @@ "mapbox-gl": "^3.5.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/mapbox/draw-polygon/tsconfig.json b/examples/mapbox/draw-polygon/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/mapbox/draw-polygon/tsconfig.json +++ b/examples/mapbox/draw-polygon/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/mapbox/draw-polygon/vite.config.js b/examples/mapbox/draw-polygon/vite.config.mjs similarity index 100% rename from examples/mapbox/draw-polygon/vite.config.js rename to examples/mapbox/draw-polygon/vite.config.mjs diff --git a/examples/mapbox/filter/package.json b/examples/mapbox/filter/package.json index 4c0575773..5aee1278b 100644 --- a/examples/mapbox/filter/package.json +++ b/examples/mapbox/filter/package.json @@ -11,7 +11,7 @@ "react-map-gl": "^8.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/mapbox/filter/tsconfig.json b/examples/mapbox/filter/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/mapbox/filter/tsconfig.json +++ b/examples/mapbox/filter/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/mapbox/filter/vite.config.js b/examples/mapbox/filter/vite.config.mjs similarity index 100% rename from examples/mapbox/filter/vite.config.js rename to examples/mapbox/filter/vite.config.mjs diff --git a/examples/mapbox/geocoder/package.json b/examples/mapbox/geocoder/package.json index d4424a1a7..d0e787f8d 100644 --- a/examples/mapbox/geocoder/package.json +++ b/examples/mapbox/geocoder/package.json @@ -13,7 +13,7 @@ "mapbox-gl": "^3.5.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/mapbox/geocoder/tsconfig.json b/examples/mapbox/geocoder/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/mapbox/geocoder/tsconfig.json +++ b/examples/mapbox/geocoder/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/mapbox/geocoder/vite.config.js b/examples/mapbox/geocoder/vite.config.mjs similarity index 100% rename from examples/mapbox/geocoder/vite.config.js rename to examples/mapbox/geocoder/vite.config.mjs diff --git a/examples/mapbox/geojson-animation/package.json b/examples/mapbox/geojson-animation/package.json index a9b9c1af1..f834b24ec 100644 --- a/examples/mapbox/geojson-animation/package.json +++ b/examples/mapbox/geojson-animation/package.json @@ -11,7 +11,7 @@ "mapbox-gl": "^3.5.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/mapbox/geojson-animation/tsconfig.json b/examples/mapbox/geojson-animation/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/mapbox/geojson-animation/tsconfig.json +++ b/examples/mapbox/geojson-animation/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/mapbox/geojson-animation/vite.config.js b/examples/mapbox/geojson-animation/vite.config.mjs similarity index 100% rename from examples/mapbox/geojson-animation/vite.config.js rename to examples/mapbox/geojson-animation/vite.config.mjs diff --git a/examples/mapbox/geojson/package.json b/examples/mapbox/geojson/package.json index f1cc8a453..d6136b2d7 100644 --- a/examples/mapbox/geojson/package.json +++ b/examples/mapbox/geojson/package.json @@ -13,7 +13,7 @@ "react-map-gl": "^8.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/mapbox/geojson/tsconfig.json b/examples/mapbox/geojson/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/mapbox/geojson/tsconfig.json +++ b/examples/mapbox/geojson/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/mapbox/geojson/vite.config.js b/examples/mapbox/geojson/vite.config.mjs similarity index 100% rename from examples/mapbox/geojson/vite.config.js rename to examples/mapbox/geojson/vite.config.mjs diff --git a/examples/mapbox/heatmap/package.json b/examples/mapbox/heatmap/package.json index a9b9c1af1..f834b24ec 100644 --- a/examples/mapbox/heatmap/package.json +++ b/examples/mapbox/heatmap/package.json @@ -11,7 +11,7 @@ "mapbox-gl": "^3.5.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/mapbox/heatmap/tsconfig.json b/examples/mapbox/heatmap/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/mapbox/heatmap/tsconfig.json +++ b/examples/mapbox/heatmap/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/mapbox/heatmap/vite.config.js b/examples/mapbox/heatmap/vite.config.mjs similarity index 100% rename from examples/mapbox/heatmap/vite.config.js rename to examples/mapbox/heatmap/vite.config.mjs diff --git a/examples/mapbox/interaction/package.json b/examples/mapbox/interaction/package.json index a9b9c1af1..f834b24ec 100644 --- a/examples/mapbox/interaction/package.json +++ b/examples/mapbox/interaction/package.json @@ -11,7 +11,7 @@ "mapbox-gl": "^3.5.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/mapbox/interaction/tsconfig.json b/examples/mapbox/interaction/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/mapbox/interaction/tsconfig.json +++ b/examples/mapbox/interaction/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/mapbox/interaction/vite.config.js b/examples/mapbox/interaction/vite.config.mjs similarity index 100% rename from examples/mapbox/interaction/vite.config.js rename to examples/mapbox/interaction/vite.config.mjs diff --git a/examples/mapbox/layers/package.json b/examples/mapbox/layers/package.json index 74a94cef3..73c79f3a1 100644 --- a/examples/mapbox/layers/package.json +++ b/examples/mapbox/layers/package.json @@ -12,7 +12,7 @@ "react-map-gl": "^8.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/mapbox/layers/tsconfig.json b/examples/mapbox/layers/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/mapbox/layers/tsconfig.json +++ b/examples/mapbox/layers/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/mapbox/layers/vite.config.js b/examples/mapbox/layers/vite.config.mjs similarity index 100% rename from examples/mapbox/layers/vite.config.js rename to examples/mapbox/layers/vite.config.mjs diff --git a/examples/mapbox/side-by-side/package.json b/examples/mapbox/side-by-side/package.json index 4c0575773..5aee1278b 100644 --- a/examples/mapbox/side-by-side/package.json +++ b/examples/mapbox/side-by-side/package.json @@ -11,7 +11,7 @@ "react-map-gl": "^8.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/mapbox/side-by-side/tsconfig.json b/examples/mapbox/side-by-side/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/mapbox/side-by-side/tsconfig.json +++ b/examples/mapbox/side-by-side/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/mapbox/side-by-side/vite.config.js b/examples/mapbox/side-by-side/vite.config.mjs similarity index 100% rename from examples/mapbox/side-by-side/vite.config.js rename to examples/mapbox/side-by-side/vite.config.mjs diff --git a/examples/mapbox/terrain/package.json b/examples/mapbox/terrain/package.json index 4c0575773..5aee1278b 100644 --- a/examples/mapbox/terrain/package.json +++ b/examples/mapbox/terrain/package.json @@ -11,7 +11,7 @@ "react-map-gl": "^8.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/mapbox/terrain/tsconfig.json b/examples/mapbox/terrain/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/mapbox/terrain/tsconfig.json +++ b/examples/mapbox/terrain/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/mapbox/terrain/vite.config.js b/examples/mapbox/terrain/vite.config.mjs similarity index 100% rename from examples/mapbox/terrain/vite.config.js rename to examples/mapbox/terrain/vite.config.mjs diff --git a/examples/mapbox/viewport-animation/package.json b/examples/mapbox/viewport-animation/package.json index a9b9c1af1..f834b24ec 100644 --- a/examples/mapbox/viewport-animation/package.json +++ b/examples/mapbox/viewport-animation/package.json @@ -11,7 +11,7 @@ "mapbox-gl": "^3.5.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/mapbox/viewport-animation/tsconfig.json b/examples/mapbox/viewport-animation/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/mapbox/viewport-animation/tsconfig.json +++ b/examples/mapbox/viewport-animation/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/mapbox/viewport-animation/vite.config.js b/examples/mapbox/viewport-animation/vite.config.mjs similarity index 100% rename from examples/mapbox/viewport-animation/vite.config.js rename to examples/mapbox/viewport-animation/vite.config.mjs diff --git a/examples/mapbox/zoom-to-bounds/package.json b/examples/mapbox/zoom-to-bounds/package.json index 07c93c726..3db39367c 100644 --- a/examples/mapbox/zoom-to-bounds/package.json +++ b/examples/mapbox/zoom-to-bounds/package.json @@ -12,7 +12,7 @@ "react-map-gl": "^8.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/mapbox/zoom-to-bounds/tsconfig.json b/examples/mapbox/zoom-to-bounds/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/mapbox/zoom-to-bounds/tsconfig.json +++ b/examples/mapbox/zoom-to-bounds/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/mapbox/zoom-to-bounds/vite.config.js b/examples/mapbox/zoom-to-bounds/vite.config.mjs similarity index 100% rename from examples/mapbox/zoom-to-bounds/vite.config.js rename to examples/mapbox/zoom-to-bounds/vite.config.mjs diff --git a/examples/maplibre/clusters/package.json b/examples/maplibre/clusters/package.json index 5d4e455c0..8e6b01650 100644 --- a/examples/maplibre/clusters/package.json +++ b/examples/maplibre/clusters/package.json @@ -11,7 +11,7 @@ "maplibre-gl": "^6.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/maplibre/clusters/tsconfig.json b/examples/maplibre/clusters/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/maplibre/clusters/tsconfig.json +++ b/examples/maplibre/clusters/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/maplibre/controls/package.json b/examples/maplibre/controls/package.json index 5d4e455c0..8e6b01650 100644 --- a/examples/maplibre/controls/package.json +++ b/examples/maplibre/controls/package.json @@ -11,7 +11,7 @@ "maplibre-gl": "^6.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/maplibre/controls/tsconfig.json b/examples/maplibre/controls/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/maplibre/controls/tsconfig.json +++ b/examples/maplibre/controls/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/maplibre/custom-cursor/package.json b/examples/maplibre/custom-cursor/package.json index 5d4e455c0..8e6b01650 100644 --- a/examples/maplibre/custom-cursor/package.json +++ b/examples/maplibre/custom-cursor/package.json @@ -11,7 +11,7 @@ "maplibre-gl": "^6.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/maplibre/custom-cursor/tsconfig.json b/examples/maplibre/custom-cursor/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/maplibre/custom-cursor/tsconfig.json +++ b/examples/maplibre/custom-cursor/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/maplibre/custom-overlay/package.json b/examples/maplibre/custom-overlay/package.json index df55b1711..d22dc7791 100644 --- a/examples/maplibre/custom-overlay/package.json +++ b/examples/maplibre/custom-overlay/package.json @@ -12,7 +12,7 @@ "maplibre-gl": "^6.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/maplibre/custom-overlay/tsconfig.json b/examples/maplibre/custom-overlay/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/maplibre/custom-overlay/tsconfig.json +++ b/examples/maplibre/custom-overlay/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/maplibre/deckgl-overlay/package.json b/examples/maplibre/deckgl-overlay/package.json index 8cda3e816..85a22f078 100644 --- a/examples/maplibre/deckgl-overlay/package.json +++ b/examples/maplibre/deckgl-overlay/package.json @@ -12,7 +12,7 @@ "maplibre-gl": "^6.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/maplibre/deckgl-overlay/tsconfig.json b/examples/maplibre/deckgl-overlay/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/maplibre/deckgl-overlay/tsconfig.json +++ b/examples/maplibre/deckgl-overlay/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/maplibre/draggable-markers/package.json b/examples/maplibre/draggable-markers/package.json index 1c764dbbb..bcbb2af40 100644 --- a/examples/maplibre/draggable-markers/package.json +++ b/examples/maplibre/draggable-markers/package.json @@ -11,7 +11,7 @@ "react-map-gl": "^8.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/maplibre/draggable-markers/tsconfig.json b/examples/maplibre/draggable-markers/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/maplibre/draggable-markers/tsconfig.json +++ b/examples/maplibre/draggable-markers/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/maplibre/draw-polygon/package.json b/examples/maplibre/draw-polygon/package.json index 814fac3fd..25e186f57 100644 --- a/examples/maplibre/draw-polygon/package.json +++ b/examples/maplibre/draw-polygon/package.json @@ -14,7 +14,7 @@ "maplibre-gl": "^6.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/maplibre/draw-polygon/tsconfig.json b/examples/maplibre/draw-polygon/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/maplibre/draw-polygon/tsconfig.json +++ b/examples/maplibre/draw-polygon/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/maplibre/filter/package.json b/examples/maplibre/filter/package.json index 1c764dbbb..bcbb2af40 100644 --- a/examples/maplibre/filter/package.json +++ b/examples/maplibre/filter/package.json @@ -11,7 +11,7 @@ "react-map-gl": "^8.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/maplibre/filter/tsconfig.json b/examples/maplibre/filter/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/maplibre/filter/tsconfig.json +++ b/examples/maplibre/filter/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/maplibre/geocoder/package.json b/examples/maplibre/geocoder/package.json index 1ee8f9a4f..a5e361aed 100644 --- a/examples/maplibre/geocoder/package.json +++ b/examples/maplibre/geocoder/package.json @@ -12,7 +12,7 @@ "maplibre-gl": "^6.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/maplibre/geocoder/tsconfig.json b/examples/maplibre/geocoder/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/maplibre/geocoder/tsconfig.json +++ b/examples/maplibre/geocoder/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/maplibre/geojson-animation/package.json b/examples/maplibre/geojson-animation/package.json index 5d4e455c0..8e6b01650 100644 --- a/examples/maplibre/geojson-animation/package.json +++ b/examples/maplibre/geojson-animation/package.json @@ -11,7 +11,7 @@ "maplibre-gl": "^6.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/maplibre/geojson-animation/tsconfig.json b/examples/maplibre/geojson-animation/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/maplibre/geojson-animation/tsconfig.json +++ b/examples/maplibre/geojson-animation/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/maplibre/geojson/package.json b/examples/maplibre/geojson/package.json index d9bd6ba52..ecca6c558 100644 --- a/examples/maplibre/geojson/package.json +++ b/examples/maplibre/geojson/package.json @@ -13,7 +13,7 @@ "react-map-gl": "^8.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/maplibre/geojson/tsconfig.json b/examples/maplibre/geojson/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/maplibre/geojson/tsconfig.json +++ b/examples/maplibre/geojson/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/maplibre/globe/package.json b/examples/maplibre/globe/package.json index 1c764dbbb..bcbb2af40 100644 --- a/examples/maplibre/globe/package.json +++ b/examples/maplibre/globe/package.json @@ -11,7 +11,7 @@ "react-map-gl": "^8.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/maplibre/globe/tsconfig.json b/examples/maplibre/globe/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/maplibre/globe/tsconfig.json +++ b/examples/maplibre/globe/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/maplibre/heatmap/package.json b/examples/maplibre/heatmap/package.json index 5d4e455c0..8e6b01650 100644 --- a/examples/maplibre/heatmap/package.json +++ b/examples/maplibre/heatmap/package.json @@ -11,7 +11,7 @@ "maplibre-gl": "^6.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/maplibre/heatmap/tsconfig.json b/examples/maplibre/heatmap/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/maplibre/heatmap/tsconfig.json +++ b/examples/maplibre/heatmap/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/maplibre/interaction/package.json b/examples/maplibre/interaction/package.json index 5d4e455c0..8e6b01650 100644 --- a/examples/maplibre/interaction/package.json +++ b/examples/maplibre/interaction/package.json @@ -11,7 +11,7 @@ "maplibre-gl": "^6.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/maplibre/interaction/tsconfig.json b/examples/maplibre/interaction/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/maplibre/interaction/tsconfig.json +++ b/examples/maplibre/interaction/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/maplibre/layers/package.json b/examples/maplibre/layers/package.json index 385b5842a..5c0ef8ddd 100644 --- a/examples/maplibre/layers/package.json +++ b/examples/maplibre/layers/package.json @@ -12,7 +12,7 @@ "react-map-gl": "^8.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/maplibre/layers/tsconfig.json b/examples/maplibre/layers/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/maplibre/layers/tsconfig.json +++ b/examples/maplibre/layers/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/maplibre/side-by-side/package.json b/examples/maplibre/side-by-side/package.json index 1c764dbbb..bcbb2af40 100644 --- a/examples/maplibre/side-by-side/package.json +++ b/examples/maplibre/side-by-side/package.json @@ -11,7 +11,7 @@ "react-map-gl": "^8.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/maplibre/side-by-side/tsconfig.json b/examples/maplibre/side-by-side/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/maplibre/side-by-side/tsconfig.json +++ b/examples/maplibre/side-by-side/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/maplibre/terrain/package.json b/examples/maplibre/terrain/package.json index 1c764dbbb..bcbb2af40 100644 --- a/examples/maplibre/terrain/package.json +++ b/examples/maplibre/terrain/package.json @@ -11,7 +11,7 @@ "react-map-gl": "^8.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/maplibre/terrain/tsconfig.json b/examples/maplibre/terrain/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/maplibre/terrain/tsconfig.json +++ b/examples/maplibre/terrain/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/maplibre/viewport-animation/package.json b/examples/maplibre/viewport-animation/package.json index 5d4e455c0..8e6b01650 100644 --- a/examples/maplibre/viewport-animation/package.json +++ b/examples/maplibre/viewport-animation/package.json @@ -11,7 +11,7 @@ "maplibre-gl": "^6.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/maplibre/viewport-animation/tsconfig.json b/examples/maplibre/viewport-animation/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/maplibre/viewport-animation/tsconfig.json +++ b/examples/maplibre/viewport-animation/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/maplibre/zoom-to-bounds/package.json b/examples/maplibre/zoom-to-bounds/package.json index efc804624..66a63f7b3 100644 --- a/examples/maplibre/zoom-to-bounds/package.json +++ b/examples/maplibre/zoom-to-bounds/package.json @@ -12,7 +12,7 @@ "react-map-gl": "^8.0.0" }, "devDependencies": { - "typescript": "^5.0.0", - "vite": "^4.0.0" + "typescript": "^6.0.3", + "vite": "^8.2.0" } } diff --git a/examples/maplibre/zoom-to-bounds/tsconfig.json b/examples/maplibre/zoom-to-bounds/tsconfig.json index 2b37aa6c2..c137eec48 100644 --- a/examples/maplibre/zoom-to-bounds/tsconfig.json +++ b/examples/maplibre/zoom-to-bounds/tsconfig.json @@ -4,7 +4,7 @@ "jsx": "react", "allowSyntheticDefaultImports": true, "resolveJsonModule": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "module": "ES2020", "sourceMap": true } diff --git a/examples/vite.config.local.js b/examples/vite.config.local.js index 8ab680e10..d59acb1b4 100644 --- a/examples/vite.config.local.js +++ b/examples/vite.config.local.js @@ -1,7 +1,7 @@ import {defineConfig} from 'vite'; import {join} from 'path'; -const rootDir = join(__dirname, '..'); +const rootDir = join(import.meta.dirname, '..'); /** https://vitejs.dev/config/ */ export default defineConfig(async () => { @@ -23,7 +23,9 @@ export default defineConfig(async () => { port: 8080 }, optimizeDeps: { - esbuildOptions: {target: 'es2020'} + rolldownOptions: { + transform: {target: 'es2020'} + } } }; }); diff --git a/test/apps/reuse-maps/tsconfig.json b/test/apps/reuse-maps/tsconfig.json index e53974cb4..d3e050d61 100644 --- a/test/apps/reuse-maps/tsconfig.json +++ b/test/apps/reuse-maps/tsconfig.json @@ -3,7 +3,7 @@ "target": "es2020", "jsx": "react", "allowSyntheticDefaultImports": true, - "moduleResolution": "node", + "moduleResolution": "bundler", "sourceMap": true, "module": "ES2020" } diff --git a/tsconfig.json b/tsconfig.json index 788ac1ba8..1f95aaf5c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -18,14 +18,12 @@ "resolveJsonModule": true, "esModuleInterop": true, "moduleResolution": "bundler", - "ignoreDeprecations": "6.0", - "baseUrl": "./", "types": ["geojson", "node"], "paths": { - "react-map-gl": ["modules/main/src"], - "@vis.gl/react-mapbox": ["modules/react-mapbox/src"], - "@vis.gl/react-maplibre": ["modules/react-maplibre/src"], - "test/*": ["test/*"] + "react-map-gl": ["./modules/main/src"], + "@vis.gl/react-mapbox": ["./modules/react-mapbox/src"], + "@vis.gl/react-maplibre": ["./modules/react-maplibre/src"], + "test/*": ["./test/*"] }, "plugins": [ {