Swap the import, keep your code
Existing maplibre-gl code runs unchanged: same API, same named exports, same maplibregl- CSS classes. The UMD bundle sets the global locusqgl and also window.maplibregl.
import maplibregl from '@locusq/gl';
const map = new maplibregl.Map({
container: 'map',
style: 'https://demotiles.maplibre.org/style.json',
center: [-74.5, 40],
zoom: 9
});