MikeMcl / bignumber.js

A JavaScript library for arbitrary-precision decimal and non-decimal arithmetic
http://mikemcl.github.io/bignumber.js
MIT License
6.63k stars 743 forks source link

Add exports field to package.json #322

Closed perrin4869 closed 2 years ago

perrin4869 commented 2 years ago

This solves https://github.com/rollup/plugins/issues/1130 Bundling json-bigint with rollup fails without this change.

shuckster commented 2 years ago

Just wanted to say that the ordering of the exports and the inclusion of a default can make a difference to WebPack and esbuild, as I recently discovered with my own small modules.

MikeMcl commented 2 years ago

Looks good. I'll consider it.

See #300 for previous on exports.

ShenHongFei commented 2 years ago

LGTM Fixed type error for TypeScript nodenext module type

MikeMcl commented 2 years ago

Okay, thank you.

coldcode001 commented 2 years ago

@MikeMcl Is there any plan to publish a new release containing this fix? I'm waiting for this to fix a critical webpack issue, would appreciate if it can be released soon.

MikeMcl commented 2 years ago

@coldcode001

Published v9.1.0.

Thanks for the nudge.