Skip to content

Commit

Permalink
Work around reactmapgl import issue with Bun.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
tordans committed Sep 10, 2023
1 parent 50b04c0 commit a6eb45e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/Map/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import maplibregl from 'maplibre-gl'
import 'maplibre-gl/dist/maplibre-gl.css'
import * as pmtiles from 'pmtiles'
import { useEffect } from 'react'
import * as reactmapgl from 'react-map-gl/maplibre'
import * as reactmapgl from 'react-map-gl/dist/es5/exports-maplibre.js'
import { $mapLoaded } from '../store'
import { MapSourceBoundaries } from './MapSourceBoundaries'
import { MapSourceMonitoring } from './MapSourceMonitoring'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Map/MapData.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useStore } from '@nanostores/react'
// @ts-expect-error see https://github.com/Turfjs/turf/issues/2414
import { length } from '@turf/turf'
import * as reactmapgl from 'react-map-gl/maplibre'
import * as reactmapgl from 'react-map-gl/dist/es5/exports-maplibre.js'
import { $mapLoaded } from '../store'

export const MapData = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Map/MapSourceBoundaries.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as reactmapgl from 'react-map-gl/maplibre'
import * as reactmapgl from 'react-map-gl/dist/es5/exports-maplibre.js'

export const MapSourceBoundaries = () => {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/Map/MapSourceMonitoring.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { useStore } from '@nanostores/react'
import * as reactmapgl from 'react-map-gl/maplibre'
import * as reactmapgl from 'react-map-gl/dist/es5/exports-maplibre.js'
import { $searchParams, type SearchParams } from '../store'
import { essentialFilterWithStyleFilter, partialFilterWithStyleFilter } from './filters'
import { layers } from './layers'
Expand Down

0 comments on commit a6eb45e

Please sign in to comment.