0.0.3 • Published 2 years ago

@cloudy-ts/esm-node v0.0.3

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
2 years ago

@cloudy-ts/esm-node

TypeScript and ESM node runtime powered by esbuild.

NPM version NPM downloads Build status

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.