From b8815148f7ca519b3978e166a4e2bcc8c9b77b86 Mon Sep 17 00:00:00 2001 From: Tom McLaughlin Date: Sat, 27 Jun 2026 23:53:02 -0400 Subject: [PATCH 1/2] create sourcemaps and don't minify CreateEntity function --- cfn-parameters.json | 3 ++- template.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cfn-parameters.json b/cfn-parameters.json index a9e1b0e..39900ff 100644 --- a/cfn-parameters.json +++ b/cfn-parameters.json @@ -5,5 +5,6 @@ "CodeBranch": $env.GITHUB_REF_SLUG_CS, "Hostname": "api.catalog.platform.serverlessops.io", "DnsZoneId": $secrets.ROUTE53_ZONE_ID, - "CognitoUserPoolArn": $secrets.COGNITO_USER_POOL_ARN + "CognitoUserPoolArn": $secrets.COGNITO_USER_POOL_ARN, + "EnableSourceMaps": true } \ No newline at end of file diff --git a/template.yaml b/template.yaml index 919262f..a0ea47c 100644 --- a/template.yaml +++ b/template.yaml @@ -77,7 +77,7 @@ Resources: Metadata: BuildMethod: esbuild BuildProperties: - Minify: true + Minify: false Target: "es2024" Format: "esm" Sourcemap: !Ref EnableSourceMaps From de5671746a39f81fc288245ff8d6dc2bcbd0e590 Mon Sep 17 00:00:00 2001 From: Tom McLaughlin Date: Sun, 28 Jun 2026 15:09:04 -0400 Subject: [PATCH 2/2] add MainFields configuration back to the esbuild build properties Since this commit was deployed functions have been failing. No clue why since this should be the default value used when not set. Let's see if this fixes it. Revert "remove unnecessary config for functions" This reverts commit 4e04adfb43c22a77a3a65e9aa348df2ed5c9f22f. --- template.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/template.yaml b/template.yaml index a0ea47c..45f282e 100644 --- a/template.yaml +++ b/template.yaml @@ -80,6 +80,7 @@ Resources: Minify: false Target: "es2024" Format: "esm" + MainFields: module,main # This is to help with ESM modules Sourcemap: !Ref EnableSourceMaps OutExtension: - .js=.mjs @@ -108,6 +109,7 @@ Resources: Minify: true Target: "es2024" Format: "esm" + MainFields: module,main # This is to help with ESM modules Sourcemap: !Ref EnableSourceMaps OutExtension: - .js=.mjs @@ -136,6 +138,7 @@ Resources: Minify: true Target: "es2024" Format: "esm" + MainFields: module,main # This is to help with ESM modules Sourcemap: !Ref EnableSourceMaps OutExtension: - .js=.mjs @@ -164,6 +167,7 @@ Resources: Minify: true Target: "es2024" Format: "esm" + MainFields: module,main # This is to help with ESM modules Sourcemap: !Ref EnableSourceMaps OutExtension: - .js=.mjs