From 793756e2aa128e44cea7cf054c13e976572d4099 Mon Sep 17 00:00:00 2001 From: Brittney Postma Date: Mon, 18 Jul 2022 19:41:49 +0000 Subject: [PATCH] type module and esm conversion --- netlify/functions/hello-world.js | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/netlify/functions/hello-world.js b/netlify/functions/hello-world.js index 40764a4..25ea764 100644 --- a/netlify/functions/hello-world.js +++ b/netlify/functions/hello-world.js @@ -1,4 +1,4 @@ -exports.handler = async function () { +export const handler = async () => { return { statusCode: 200, body: JSON.stringify({ diff --git a/package.json b/package.json index 4608da6..2a7ec9f 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,5 @@ { + "type": "module", "name": "explorers-up-and-running-with-serverless-functions", "version": "1.0.0", "description": "Learn how to use serverless functions in less than 30 minutes!",