Emscripten wrapper modifies Node.js globals (original) (raw)

I'm trying to integrate Draco into glTF-Transform, and have hit an issue with the generated Emscripten wrapper. It includes the following:

process"on"{if(!(ex instanceof ExitStatus)){throw ex}});process"on";

The effect of that, unfortunately, is to create noisy output that obscures my own stack traces and user-facing warnings, where my CLI library would normally handle errors. Is it possible to build (and ideally publish) the npm package without this in the wrapper?