async _initDecoder() {
    const workerSource = `
      ${decoderModuleSource}

      var _DracoDecoderModule = DracoDecoderModule
      DracoDecoderModule = (config) => {
        config.locateFile = () => self.origin + '${decoderWasmPath}';
        return _DracoDecoderModule(config);
      };

      (${DRACOLoader.DRACOWorker}).call(self);
    `
    const workerSourceBlob = new Blob([ workerSource ])
    this.workerSourceURL = URL.createObjectURL(workerSourceBlob)
  }
// shim the Emscripten module function to fetch it via locateFile:
shim the Emscripten module function to fetch it via locateFile.
shim the Emscripten module function to fetch it via locateFile .
async _initDecoder() {
    const workerSource = `
      ${decoderModuleSource}
      var _DracoDecoderModule = DracoDecoderModule
      DracoDecoderModule = (config) => {
        config.locateFile = () => self.origin + '${decoderWasmPath}';
        return _DracoDecoderModule(config);
      };
      (${DRACOLoader.DRACOWorker}).call(self);
    `
    const workerSourceBlob = new Blob([ workerSource ])
    this.workerSourceURL = URL.createObjectURL(workerSourceBlob)
  }
async _initDecoder ( ) { const workerSource = ` ${ decoderModuleSource } ${ decoderWasmPath } ${ DRACOLoader . DRACOWorker } ` const workerSourceBlob = new Blob ( [ workerSource ] ) this . workerSourceURL = URL . createObjectURL ( workerSourceBlob ) }
shim the Emscripten module function to fetch it via locateFile:
shim the Emscripten module function to fetch it via locateFile :