feat: initial work at bundling ESM and CommonJS
[poolifier.git] / package.json
index 65e343654521112adb6a4386aa12177734890a94..c06db4c53652dc88c4f842e4e161ed30329adc88 100644 (file)
@@ -3,7 +3,10 @@
   "version": "2.3.8",
   "description": "A fast, easy to use Node.js Worker Thread Pool and Cluster Pool implementation",
   "license": "MIT",
-  "main": "lib/index.js",
+  "exports": [
+    "lib/index.js",
+    "lib/index.mjs"
+  ],
   "scripts": {
     "prepare": "node prepare.js",
     "build": "rollup --config --environment BUILD:development",