@Florent I suggest you study how async/await works in JavaScript (e.g. Async/await). You can’t use await
anywhere in your code.
1 Like
Yes, we can’t, especially at the root scope of the module apparently.
But I was wondering if I missed something or just that this code doesn’t not work as-is as a replacement of the DRACOLoader.patch
Edit: @Lems code works like a charm