Skip to content

Commit a10b829

Browse files
niconiconiclaude
andcommitted
fix: add bare module name stubs to browser field for browserify
browserify resolves dynamic import("fs/promises") as bare module names, not node:-prefixed. Add both variants so browserify stubs them correctly in browser builds. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ec132e8 commit a10b829

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

package.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ocash/sdk",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "OCash ZKP SDK for browser, hybrid and Node runtimes",
55
"license": "MIT",
66
"repository": {
@@ -50,7 +50,11 @@
5050
"better-sqlite3": false,
5151
"node:sqlite": false,
5252
"node:fs/promises": false,
53-
"node:path": false
53+
"node:path": false,
54+
"fs": false,
55+
"fs/promises": false,
56+
"path": false,
57+
"sqlite": false
5458
},
5559
"files": [
5660
"dist",

0 commit comments

Comments
 (0)