@cloudy-ts/esm-node
v0.0.4
Published
TypeScript and ESM node runtime powered by esbuild.
Downloads
12
Readme
@cloudy-ts/esm-node
TypeScript and ESM node runtime powered by esbuild.
Installation
yarn add @cloudy-ts/esm-node
Usage
yarn esm-node index.ts
Or manually:
node --loader @cloudy-ts/esm-node index.ts
Motivation
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.