removing the worker install and changing the browserslist again
This commit is contained in:
parent
b0274d203a
commit
328ab53416
3 changed files with 29 additions and 589 deletions
|
|
@ -39,9 +39,6 @@ import { MapMouseEvent } from "mapbox-gl";
|
|||
import { makeStyles } from "@mui/styles";
|
||||
import { Result } from "@mapbox/mapbox-gl-geocoder";
|
||||
|
||||
import mapboxgl from "mapbox-gl";
|
||||
mapboxgl.workerClass = require('worker-loader!mapbox-gl/dist/mapbox-gl-csp-worker').default;
|
||||
|
||||
//const MAPBOX_TOKEN = process.env.REACT_APP_MAPBOX_ACCESS_TOKEN;
|
||||
const MAPBOX_TOKEN = import.meta.env.VITE_MAPBOX_ACCESS_TOKEN;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue