Skip to content

Commit

Permalink
try ESM once more
Browse files Browse the repository at this point in the history
  • Loading branch information
tmclaugh committed Oct 22, 2024
1 parent a4fed82 commit bb26bf9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "serverlessops-catalog-api",
"version": "0.0.1",
"description": "ServerlessOps Catalog API for Backstage",
"type": "module",
"repository": {
"type": "git",
"url": "[email protected]:ServerlessOpsIO/serverlessops-catalog-api.git"
Expand Down
6 changes: 4 additions & 2 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ Resources:
BuildProperties:
Minify: true
Target: "es2020"
Format: "esm"
Sourcemap: !Ref EnableSourceMaps
OutExtension:
- .js=.cjs
- .js=.mjs
EntryPoints:
- function.js

Expand All @@ -106,9 +107,10 @@ Resources:
BuildProperties:
Minify: true
Target: "es2020"
Format: "esm"
Sourcemap: !Ref EnableSourceMaps
OutExtension:
- .js=.cjs
- .js=.mjs
EntryPoints:
- function.js

Expand Down

0 comments on commit bb26bf9

Please sign in to comment.