title: Netlify FaunaDB serverless dynamic require errors
body: <p>trying to get this simple typescript faunadb / netlify serverless function to work</p>
  <pre><code>// TYPESCRIPT
  import faunadb from 'faunadb' /* Import faunaDB sdk */
  
  /* configure faunaDB Client with our secret */
  const q = faunadb.query
  const client = new faunadb.Client({
    secret: process.env.FAUNADB_SECRET
  })
  
  export const handler = async function (event, context) {
  
      const t = {success: &quot;success&quot;};
      return  {
          statusCode: 200,
          body: JSON.stringify(t, null, 2)
      };
  };
  
  </code></pre>
  <p>but i keep getting this error after it's deployed</p>
  <pre><code>{&quot;errorType&quot;:&quot;Error&quot;,&quot;errorMessage&quot;:&quot;Dynamic require of \&quot;util\&quot; is not supported&quot;,&quot;trace&quot;:[&quot;Error: Dynamic require of \&quot;util\&quot; is not supported&quot;,&quot;    at __require (file:///var/task/functions/play.js:28:9)&quot;,&quot;    at node_modules/util-deprecate/node.js (file:///var/task/functions/play.js:86:22)&quot;,&quot;    at __require2 (file:///var/task/functions/play.js:31:44)&quot;,&quot;    at node_modules/faunadb/src/query.js (file:///var/task/functions/play.js:6328:21)&quot;,&quot;    at __require2 (file:///var/task/functions/play.js:31:44)&quot;,&quot;    at node_modules/faunadb/index.js (file:///var/task/functions/play.js:8742:17)&quot;,&quot;    at __require2 (file:///var/task/functions/play.js:31:44)&quot;,&quot;    at file:///var/task/functions/play.js:8760:33&quot;,&quot;    at ModuleJob.run (internal/modules/esm/module_job.js:183:25)&quot;,&quot;    at process.runNextTicks [as _tickCallback] (internal/process/task_queues.js:60:5)&quot;]}
  </code></pre>
  <p>any ideas?</p>
  <p>** Edit
  Looks like this is a problem with Netlify's serverless typescript support. Compiling the typescript functions into their .js counterparts works as intended.</p>