Skip to content

Commit

Permalink
Fix ESM compatibility
Browse files Browse the repository at this point in the history
This allows importing big.js in ESM packages without having to resolve
to the

    import Big from 'big.js/big.mjs';

trick.

Fixes GH-170.
  • Loading branch information
jstasiak committed May 19, 2022
1 parent 8655bdf commit a28eb33
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@
"bigint",
"bignum"
],
"exports": {
".": {
"import": "./big.mjs",
"require": "./big.js"
}
},
"repository": {
"type": "git",
"url": "https://github.com/MikeMcl/big.js.git"
Expand Down

0 comments on commit a28eb33

Please sign in to comment.