Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,18 @@ Parameters:
Type: String
Description: Cognito User Pool ARN

# NOTE: This project's `yarn run sam:build` doesn't handle cfn-parameters.json so if we want
# to change these values to effect the build we need to do it here.
Comment on lines +34 to +35
EnableSourceMaps:
Type: String
Description: Enable source maps for debugging
Default: false

EnableMinify:
Type: String
Description: Enable minification for the build
Default: true
Comment on lines +41 to +44


Globals:
Function:
Expand Down Expand Up @@ -77,7 +84,7 @@ Resources:
Metadata:
BuildMethod: esbuild
BuildProperties:
Minify: true
Minify: !Ref EnableMinify
Target: "es2024"
Format: "esm"
MainFields: module,main # This is to help with ESM modules
Expand Down Expand Up @@ -106,7 +113,7 @@ Resources:
Metadata:
BuildMethod: esbuild
BuildProperties:
Minify: true
Minify: !Ref EnableMinify
Target: "es2024"
Format: "esm"
MainFields: module,main # This is to help with ESM modules
Expand Down Expand Up @@ -135,7 +142,7 @@ Resources:
Metadata:
BuildMethod: esbuild
BuildProperties:
Minify: true
Minify: !Ref EnableMinify
Target: "es2024"
Format: "esm"
MainFields: module,main # This is to help with ESM modules
Expand Down Expand Up @@ -164,7 +171,7 @@ Resources:
Metadata:
BuildMethod: esbuild
BuildProperties:
Minify: true
Minify: !Ref EnableMinify
Target: "es2024"
Format: "esm"
MainFields: module,main # This is to help with ESM modules
Expand Down