Importing and mutating decimal.js seems like it could cause conflicts with other modules. It seems like this is necessary for some reason according to this comment, but why is unclear to me.
|
// In order to appropriately represent the Format class, it needs to be placed on Decimal as a 'static' member: |
Could we instead have a version of this library which does no automatic patching but instead exports the Decimal.Format object?
Happy to make a PR once we've decided! Thanks so much for making this library!!