From 5df1be7bf0e145607d579a16bf0066349dd73760 Mon Sep 17 00:00:00 2001 From: Tom McLaughlin Date: Sun, 28 Jun 2026 16:00:51 -0400 Subject: [PATCH] Order of MainField value does in fact matter. Revert "Testing if order of MainField matters." This reverts commit 6552c06723577db716026f42d4b6582c8d8e3773. --- cfn-parameters.json | 3 +-- template.yaml | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/cfn-parameters.json b/cfn-parameters.json index 871ce3e..a9e1b0e 100644 --- a/cfn-parameters.json +++ b/cfn-parameters.json @@ -5,6 +5,5 @@ "CodeBranch": $env.GITHUB_REF_SLUG_CS, "Hostname": "api.catalog.platform.serverlessops.io", "DnsZoneId": $secrets.ROUTE53_ZONE_ID, - "CognitoUserPoolArn": $secrets.COGNITO_USER_POOL_ARN, - "EnableSourceMaps": "true" + "CognitoUserPoolArn": $secrets.COGNITO_USER_POOL_ARN } \ No newline at end of file diff --git a/template.yaml b/template.yaml index c84755f..c29b983 100644 --- a/template.yaml +++ b/template.yaml @@ -77,10 +77,10 @@ Resources: Metadata: BuildMethod: esbuild BuildProperties: - Minify: false + Minify: true Target: "es2024" Format: "esm" - MainFields: main,module # This is to help with ESM modules + MainFields: module,main # This is to help with ESM modules Sourcemap: !Ref EnableSourceMaps OutExtension: - .js=.mjs