0.0.4 • Published 4 years ago
@cloudy-ts/esm-node v0.0.4
@cloudy-ts/esm-node
TypeScript and ESM node runtime powered by esbuild.
Installation
yarn add @cloudy-ts/esm-nodeUsage
yarn esm-node index.tsOr manually:
node --loader @cloudy-ts/esm-node index.tsMotivation
The implementation is a fork of antfu's esno, but changes the esbuild target to es2022.
The main reason to do so is that esno will generate helpers that break Pulumi's function serialization when spreading objects. Another reason is that es2022 allows using top level await, which is supported by AWS Lambda with Node.js 14.