forked from praneshr/react-diff-viewer
-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Labels
enhancementNew feature or requestNew feature or request
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.defaultI 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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request