mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2024-10-27 20:34:12 +00:00
Support ES6 imports
This commit is contained in:
parent
e48bddf45a
commit
4df9158a1a
@ -4781,7 +4781,7 @@
|
||||
|
||||
// Node and other environments that support module.exports.
|
||||
} else if (typeof module != 'undefined' && module.exports) {
|
||||
module.exports = Decimal;
|
||||
module.exports = Decimal.default = Decimal.Decimal = Decimal;
|
||||
|
||||
// Browser.
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user