Closed
Description
Specification
This should be migrated to ESM, all upstream libraries is already ESM.
Also while doing this, we should conditionally import perf_hooks
. Because browser environments would rely on the global performance API instead. And one of the whole points was to use top level awaits as way to switch between browser implementation or node implementation.
Additional context
- Migrate to ESM (and get dynamic await) TypeScript-Demo-Lib#32
- Migrate to ESM (and get dynamic await) TypeScript-Demo-Lib#32 (comment) - make sure to address this
Tasks
- Collate migration style from all repos
- Migrate this repo
- Release v2.0.0