yarn add three-gltf-loader
npm i --save three-gltf-loader
three.js's r92 GLTFLoader wrapped as a module for easy importing.
import * as THREE from 'three';
import GLTFLoader from 'three-gltf-loader';
const loader = new GLTFLoader();
For further documentation, see the GLTFLoader docs.
Please note that this is just a wrapper for the glTF loader provided by three.js. Therefore, any issues regarding the loader should be reported directly via the three.js issue tracker. For issues directly related to the wrapper or this package specifically, feel free to contact me.