{"id":13505644,"url":"https://github.com/floydspace/aws-lambda-nodejs-esbuild","last_synced_at":"2025-05-03T21:31:31.155Z","repository":{"id":55879480,"uuid":"306990675","full_name":"floydspace/aws-lambda-nodejs-esbuild","owner":"floydspace","description":"λ💨 AWS CDK Construct to bundle JavaScript and TypeScript AWS lambdas using extremely fast esbuild.","archived":false,"fork":false,"pushed_at":"2021-07-19T10:57:57.000Z","size":75,"stargazers_count":69,"open_issues_count":3,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-21T02:28:25.871Z","etag":null,"topics":["aws","aws-cdk","aws-lambda","aws-lambda-node","builder","bundler","cdk-construct","construct","esbuild","lambda","typescript"],"latest_commit_sha":null,"homepage":"https://floydspace.github.io/aws-lambda-nodejs-esbuild/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/floydspace.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"floydspace","patreon":"floydspace","issuehunt":"floydspace","ko_fi":"floydspace"}},"created_at":"2020-10-24T23:37:39.000Z","updated_at":"2025-02-20T20:14:58.000Z","dependencies_parsed_at":"2022-08-15T08:30:46.672Z","dependency_job_id":null,"html_url":"https://github.com/floydspace/aws-lambda-nodejs-esbuild","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floydspace%2Faws-lambda-nodejs-esbuild","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floydspace%2Faws-lambda-nodejs-esbuild/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floydspace%2Faws-lambda-nodejs-esbuild/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floydspace%2Faws-lambda-nodejs-esbuild/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floydspace","download_url":"https://codeload.github.com/floydspace/aws-lambda-nodejs-esbuild/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251590657,"owners_count":21613997,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","aws-cdk","aws-lambda","aws-lambda-node","builder","bundler","cdk-construct","construct","esbuild","lambda","typescript"],"created_at":"2024-08-01T00:01:11.010Z","updated_at":"2025-05-03T21:31:26.232Z","avatar_url":"https://github.com/floydspace.png","language":"TypeScript","readme":"λ💨 aws-lambda-nodejs-esbuild\n==============\n\n[AWS CDK](https://aws.amazon.com/cdk/) Construct to build Node.js AWS lambdas using [esbuild](https://esbuild.github.io).\n\n![CDK Construct NodeJS](https://img.shields.io/badge/cdk--construct-node.js-blue?logo=amazon-aws\u0026color=43853d)\n[![Build Status](https://img.shields.io/github/workflow/status/floydspace/aws-lambda-nodejs-esbuild/release)](https://github.com/floydspace/aws-lambda-nodejs-esbuild/actions)\n[![Coverage Status](https://coveralls.io/repos/github/floydspace/aws-lambda-nodejs-esbuild/badge.svg?branch=master)](https://coveralls.io/github/floydspace/aws-lambda-nodejs-esbuild?branch=master)\n[![npm version](https://badge.fury.io/js/aws-lambda-nodejs-esbuild.svg)](https://badge.fury.io/js/aws-lambda-nodejs-esbuild)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Mentioned in Awesome CDK](https://awesome.re/mentioned-badge.svg)](https://github.com/kolomied/awesome-cdk)\n\n\nTable of Contents\n-----------------\n- [Features](#features)\n- [Installation](#installation)\n- [Configure](#configure)\n- [Usage](#usage)\n- [Author](#author)\n\n\nFeatures\n--------\n\n* Zero-config: Works out of the box without the need to install any other packages\n* Supports ESNext and TypeScript syntax with transforming limitations (See *Note*)\n\n*Note*: The default JavaScript syntax target is set to [`ES2017`](https://node.green/#ES2017), so the final bundle will be supported by all [AWS Lambda Node.js runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html). If you still using an old lambda runtime and have to respect it you can play with esbuild `target` option, see [JavaScript syntax support](https://esbuild.github.io/content-types/#javascript) for more details about syntax transform limitations.\n\n\nInstallation\n------------\n\n```sh\nyarn add --dev @aws-cdk/aws-lambda aws-lambda-nodejs-esbuild\n# or\nnpm install -D @aws-cdk/aws-lambda aws-lambda-nodejs-esbuild\n```\n\n\nConfigure\n---------\n\nBy default, no configuration required, but you can change esbuild behavior:\n\n```ts\n  import * as cdk from '@aws-cdk/core';\n  import { NodejsFunction } from 'aws-lambda-nodejs-esbuild';\n\n  class NewStack extends cdk.Stack {\n    constructor(scope, id, props) {\n      super(scope, id, props);\n\n      new NodejsFunction(this, 'NewFunction', {\n        esbuildOptions: {\n          minify: false, // default\n          target: 'ES2017',\n        }\n      });\n    }\n  }\n```\n\nCheck [esbuild](https://esbuild.github.io/api/#simple-options) documentation for the full list of available options. Note that some options like `entryPoints` or `outdir` cannot be overwritten.\nThe package specified in the `exclude` option is passed to esbuild as `external`, but it is not included in the function bundle either. The default value for this option is `['aws-sdk']`.\n\n\nUsage\n-----\n\nThe normal AWS CDK deploy procedure will automatically compile with `esbuild`:\n\n- Create the AWS CDK project with `cdk init app --language=typescript`\n- Install `aws-lambda-nodejs-esbuild` as above\n- Deploy with `cdk deploy`\n\nSee examples: [minimal](examples/minimal/README.md) and [complete](examples/complete/README.md)\n\n\nAuthor\n------\n\n[Victor Korzunin](https://floydspace.github.io/)\n","funding_links":["https://github.com/sponsors/floydspace","https://patreon.com/floydspace","https://issuehunt.io/r/floydspace","https://ko-fi.com/floydspace"],"categories":["TypeScript","Language Support","JavaScript Ecosystem"],"sub_categories":["Multi-accounts setup"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloydspace%2Faws-lambda-nodejs-esbuild","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloydspace%2Faws-lambda-nodejs-esbuild","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloydspace%2Faws-lambda-nodejs-esbuild/lists"}