Skip to content

Commit 386a580

Browse files
committed
fix: fallback module path
1 parent e73b4ac commit 386a580

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ function getFallbackObj(obj) {
239239
const res = {};
240240
for (const [k, v] of Object.entries(obj)) {
241241
try {
242-
const p = v;
242+
const p = require.resolve(v);
243243
url && (res[k] = p);
244244
} catch (e) { }
245245
}

0 commit comments

Comments
 (0)