@mapbox/react-map-gl
Version:
A React wrapper for MapboxGL-js and overlay API.
16 lines (14 loc) • 445 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = assert;
// Replacement for the external assert method to reduce bundle size
// Note: We don't use the second "message" argument in calling code,
// so no need to support it here
function assert(condition, message) {
if (!condition) {
throw new Error(message || 'react-map-gl: assertion failed.');
}
}
//# sourceMappingURL=assert.js.map