@loaders.gl/gltf
Version:
Framework-independent loader for the glTF format
9 lines • 338 B
JavaScript
// 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
export function assert(condition, message) {
if (!condition) {
throw new Error(message || 'assert failed: gltf');
}
}
//# sourceMappingURL=assert.js.map