feat: add aws-node-esm-esbuild example#816
Open
czubocha wants to merge 2 commits into
Open
Conversation
Demonstrates bundling TypeScript handlers as ES modules (.mjs) via esbuild format + outExtension, without shipping a package.json in the artifact. Verified deployable (deploy, HTTP endpoint, invoke local, remove).
czubocha
force-pushed
the
feat/aws-node-esm-esbuild
branch
from
July 23, 2026 23:32
de0a09d to
3ce26d6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
aws-node-esm-esbuild: a minimal TypeScript service bundled as an ES module (.mjs) via the built-in esbuild support (format: esm+outExtension), with nopackage.jsoninside the deployment artifactimport.meta.urland returning it in the HTTP responseexamples.jsonentry added and README index regenerated (npm run validateandnpm run docsboth pass)Test plan
serverless invoke local, and removed the stackNote
This example uses the
outExtensionsupport added in serverless/serverless#13740, so it should be merged once that change is available in a release.