import Compare from 'mapbox-gl-compare'
mapboxgl.Compare = Compare
var map = new mapboxgl.Compare(beforeMap, afterMap, '#wrapper')
安装依赖后 控制台报错 "TypeError: _mapboxGl.default.Compare is not a constructor"