Skip to content
This repository was archived by the owner on Jul 21, 2023. It is now read-only.

Commit 3c737c1

Browse files
authored
fix: browser override path (#228)
Webpack requires the `./` otherwise you get: ``` ERROR in ./node_modules/libp2p-kad-dht/src/routing-table/index.js 6:27-66 Module not found: Error: Can't resolve './generated-prefix-list.json' in '/Users/alex/test/webpack/node_modules/libp2p-kad-dht/src/routing-table' ```
1 parent 104d1c4 commit 3c737c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,6 @@
112112
"Thomas Eizinger <[email protected]>"
113113
],
114114
"browser": {
115-
"src/routing-table/generated-prefix-list.json": "src/routing-table/generated-prefix-list-browser.json"
115+
"./src/routing-table/generated-prefix-list.json": "./src/routing-table/generated-prefix-list-browser.json"
116116
}
117117
}

0 commit comments

Comments
 (0)