WebReflection / not-so-weak

Iterable WeakMap, WeakSet and WeakValue
ISC License
36 stars 1 forks source link

Sources code exists twice for esm / cjs ? #1

Open bogeeee opened 2 months ago

bogeeee commented 2 months ago

It's harder to review and maintain. Would rather use a wrapper file for it: See https://nodejs.org/api/packages.html#approach-1-use-an-es-module-wrapper

Also the cjs/package.json can go away then imho, as listing it under exports/default (or better: exports/require) in the main package.json should be enough.

WebReflection commented 2 months ago

what issue are you trying to solve?