Open
Description
I tried using this in a NextJS ESM project, and the default import is not the default export, rather the module object.
My workaround probably does a better job at explaining the problem:
import diffViewerModule from "react-diff-viewer-continued"
const DiffViewer = diffViewerModule.default
I know that getting typescript and ESM to play nice can be a real PITA, but would it be possible to provide a build for ESM?
Esbuild can handle this, you could perhaps build lib/index.mjs
and then put that in the module
field in package.json
.