Post

PSA: #AWS #Lambda nodejs24.x can run #TypeScript without a build step. index.ts (your handler): export const handler = async () => ({foo: '.ts'}) index.mjs (one liner): export {handler} from './index.ts' NODE_OPTIONS=--experimental-detect-module AWS disabled this ↑ Other flags break execution.

FWIW importing .(c|m)?ts from .(c|m)?js is completely valid. And eval of TS with type stripping is not experimental in Node v24. Dynamically detecting syntax is marked "stability 1.2": experimental release candidate - the next step is "stable".

0 reposts0 likes

No replies yet.