Netlify Serverless Typescript functions fail with dynamic requires

This was pretty difficult to fix. This is what was found: