mirror of
https://github.com/visgl/react-map-gl.git
synced 2026-01-18 15:54:22 +00:00
Log react-map-gl version number (#524)
This commit is contained in:
parent
b5e2c7fab9
commit
fb36bb891e
@ -112,7 +112,12 @@ export default class Mapbox {
|
||||
|
||||
if (!Mapbox.initialized && console.debug) { // eslint-disable-line
|
||||
Mapbox.initialized = true;
|
||||
console.debug(`react-map-gl: using mapbox-gl v${props.mapboxgl.version}`); // eslint-disable-line
|
||||
|
||||
// Version detection using babel plugin
|
||||
/* global __VERSION__ */
|
||||
const VERSION = typeof __VERSION__ !== 'undefined' ? __VERSION__ : 'untranspiled source';
|
||||
|
||||
console.debug(`react-map-gl: ${VERSION} using mapbox-gl v${props.mapboxgl.version}`); // eslint-disable-line
|
||||
}
|
||||
|
||||
this.props = {};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user