We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To be able to use the package in my library (which is built as a dual ESM/CJS lib via tsup) , I had to resort to this hack:
tsup
import ReactDiffViewer from "react-diff-viewer"; const DiffViewer: typeof ReactDiffViewer = (ReactDiffViewer as any).default ? (ReactDiffViewer as any).default : ReactDiffViewer;
For more information:
https://arethetypeswrong.github.io/?p=react-diff-viewer%403.1.1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To be able to use the package in my library (which is built as a dual ESM/CJS lib via
tsup
) , I had to resort to this hack:For more information:
https://arethetypeswrong.github.io/?p=react-diff-viewer%403.1.1
The text was updated successfully, but these errors were encountered: