Skip to content

Commit 5a95487

Browse files
committed
Expose d3-require’s default resolve.
1 parent 837957e commit 5a95487

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
export {default as FileAttachments} from "./fileAttachment.js";
22
export {default as Library} from "./library.js";
3+
export {resolve} from "./require.js";

src/require.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import {require as requireDefault, requireFrom} from "d3-require";
22

3+
export const resolve = requireDefault.resolve;
4+
35
export default function(resolve) {
46
return resolve == null ? requireDefault : requireFrom(resolve);
57
}

0 commit comments

Comments
 (0)