Is it possible to generate a static site from an app that uses class-transformer?

Hello! I am building an app which uses class-transformer to convert plain objects from an API response to class objects. In the browser, the app runs without issue. However, when I try and turn it into a static site by running stencil build --prerender, I get the following error: TypeError: Reflect.getMetadata is not a function at. It is important to note that class-transformer depends on another package, reflect-metadata which must be imported in a global place. In the case of my Stencil app, I have imported it in app.ts. I believe the global import has something to do with this issue, but I can not pinpoint the cause. The function being referred to by the error message comes from the reflect-metadata package. Thanks!