primus / eventemitter3

EventEmitter3 - Because there's also a number 2. And we're faster.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESM support

unional opened this issue · comments

Is there any plan to update and support ESM?

There was a closed issue in the past #235, but that's old and is about adding module: '...'.

It would be great to support proper ESM:

{
  "type": "module",
  "exports": {
    "import": "./esm/index.js",
     "require": "./cjs/index.js" // if supporting both ESM and cjs
   }
}