Skip to content

Commit 7fda63a

Browse files
committed
fix: modify imports for proper esm resolution
1 parent 1fd0b68 commit 7fda63a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/index.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ import type { JSX, ReactElement } from "react";
44

55
import type { Change } from "diff";
66
import memoize from "memoize-one";
7-
import { type Block, computeHiddenBlocks } from "./compute-hidden-blocks";
7+
import { type Block, computeHiddenBlocks } from "./compute-hidden-blocks.js";
88
import {
99
type DiffInformation,
1010
DiffMethod,
1111
DiffType,
1212
type LineInformation,
1313
computeLineInformation,
14-
} from "./compute-lines";
15-
import { Expand } from "./expand";
14+
} from "./compute-lines.js";
15+
import { Expand } from "./expand.js";
1616
import computeStyles, {
1717
type ReactDiffViewerStyles,
1818
type ReactDiffViewerStylesOverride,
19-
} from "./styles";
19+
} from "./styles.js";
2020

21-
import { Fold } from "./fold";
21+
import { Fold } from "./fold.js";
2222

2323
type IntrinsicElements = JSX.IntrinsicElements;
2424

0 commit comments

Comments
 (0)