forked from praneshr/react-diff-viewer
-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
Hello and thank you for your continued support on this library.
Since you published the last version 4.1.2 or maybe since 4.1.0 I've been experiencing an issue with the Worker.
The error being thrown is
[Error] Error: Dynamic require of "./workerBundle" is not supported
And this error results in
Unhandled Promise Rejection: DataCloneError: The object can not be cloned.
which is kind of expected.
These errors result in empty diffs which is a breaking change.
I see you have unpublished commits related to how the Worker is being bundled and used so I am guessing somebody else also experienced similar issues.
Is there any ETA on a fix for this?
FWIW I am using Vite v6.4.1. and I cannot switch to a different bundler.
Might I suggest a workaround for the future - it might be a good idea to add a setting which completely disables usage of Workers in favor of the fallback() function
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels