Skip to content

Commit fe653f8

Browse files
Revert workerd/worker exports to ESM
The UMD bundle references browser globals (e.g. `window` in js-sha256) that throw `ReferenceError: window is not defined` in the workerd runtime. ESM was the working path before d856796; restoring it. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent d856796 commit fe653f8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"exports": {
1818
".": {
1919
"types": "./dist/types/index.d.ts",
20-
"workerd": "./dist/crowdhandler.umd.js",
21-
"worker": "./dist/crowdhandler.umd.js",
20+
"workerd": "./dist/crowdhandler.esm.js",
21+
"worker": "./dist/crowdhandler.esm.js",
2222
"browser": "./dist/crowdhandler.umd.js",
2323
"import": "./dist/crowdhandler.esm.js",
2424
"require": "./dist/crowdhandler.cjs.js",

0 commit comments

Comments
 (0)