hard-source-webpack-plugin icon indicating copy to clipboard operation
hard-source-webpack-plugin copied to clipboard

Allow for bigint values in JSON.stringify

Open jacogr opened this issue 4 years ago • 0 comments

This change is as the result of a CI failure where bigint values are in-use -

https://github.com/LedgerHQ/ledger-live-desktop/runs/4325584600?check_suite_focus=true#step:13:92

Some background reading here - https://dev.to/benlesh/bigint-and-json-stringify-json-parse-2m8p

In this approach instead of adding a replacer, the typeof is just checked and then toString() is used on the value if found to be a bigint.

jacogr avatar Nov 27 '21 06:11 jacogr