[Docs] Use native structuredClone instead of clone-deep #906
Labels
enhancement
[Issue][PR] New feature
pending-author
[Issue] Awaiting further information or action from the issue author
pending-triage
[Issue] Ticket is pending to be prioritised
Description
As a developer using Storyblok SDK, I want to limit the amount of external dependencies so that the bundle size of my app is as small as possible, and to reduce the possible points of failure.
In the Rendering Rich Text section of the README, there's an example featuring the usage of the clone-deep library.
However, there's a native function structuredClone that is widely available to all browsers.
Suggested solution or improvement
If there's no specific reason for using the
clone-deep
library instead of the nativestructuredClone
function, replace the usage ofclone-deep
withstructuredClone
.If there's a good reason, then provide an explanation in the README.
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: