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
We use Tree Shaking in our project. It removes dead-code.
It is removing "diffChars" method from "jsdiff" lib.
We are doing the following workaround:
- import DiffViewer from "react-diff-viewer"; + import DiffViewer, { DiffMethod } from "react-diff-viewer"; + import { diffChars } from "diff"; <DiffViewer oldValue={props.oldValue} newValue={props.newValue} + compareMethod={diffChars.name as DiffMethod.CHARS} />
We suggest to improve typing on following code to prevent Tree Shaking:
react-diff-viewer/src/compute-lines.ts
Line 3 in 9ac4ba9
The text was updated successfully, but these errors were encountered:
No branches or pull requests
We use Tree Shaking in our project. It removes dead-code.
It is removing "diffChars" method from "jsdiff" lib.
We are doing the following workaround:
We suggest to improve typing on following code to prevent Tree Shaking:
react-diff-viewer/src/compute-lines.ts
Line 3 in 9ac4ba9
The text was updated successfully, but these errors were encountered: