diff --git a/src/mapbox/mapbox.js b/src/mapbox/mapbox.js index 6dc5734d..894d73e6 100644 --- a/src/mapbox/mapbox.js +++ b/src/mapbox/mapbox.js @@ -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 = {};