Skip to content

Commit 1aa5d3d

Browse files
committed
fix: ensure path is polyfilled in the browser with path-esm.
1 parent 5dbed8a commit 1aa5d3d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"url": "https://webtorrent.io"
99
},
1010
"browser": {
11-
"fs": false
11+
"fs": false,
12+
"path": "path-esm"
1213
},
1314
"bin": "./bin/cmd.js",
1415
"bugs": {
@@ -26,7 +27,8 @@
2627
"get-stdin": "^9.0.0",
2728
"magnet-uri": "^7.0.7",
2829
"queue-microtask": "^1.2.3",
29-
"uint8-util": "^2.2.5"
30+
"uint8-util": "^2.2.5",
31+
"path-esm": "^1.0.0"
3032
},
3133
"devDependencies": {
3234
"@webtorrent/semantic-release-config": "1.0.10",

0 commit comments

Comments
 (0)