@cloudy-ts/esm-node
TypeScript icon, indicating that this package has built-in type declarations

0.0.4 • Public • Published

@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.

Readme

Keywords

none

Package Sidebar

Install

npm i @cloudy-ts/esm-node

Weekly Downloads

1

Version

0.0.4

License

Apache-2.0

Unpacked Size

24.6 kB

Total Files

11

Last publish

Collaborators

  • skyrpex