mirror of
https://github.com/MikeMcl/decimal.js.git
synced 2024-10-27 20:34:12 +00:00
Fix import issues
This commit is contained in:
parent
3cbfd6da08
commit
9ae7ca7088
@ -4775,6 +4775,8 @@ function trunc(x) {
|
|||||||
// Create and configure initial Decimal constructor.
|
// Create and configure initial Decimal constructor.
|
||||||
Decimal = clone(defaults);
|
Decimal = clone(defaults);
|
||||||
|
|
||||||
|
Decimal['default'] = Decimal.Decimal = Decimal;
|
||||||
|
|
||||||
// Create the internal constants from their string values.
|
// Create the internal constants from their string values.
|
||||||
LN10 = new Decimal(ln10);
|
LN10 = new Decimal(ln10);
|
||||||
PI = new Decimal(pi);
|
PI = new Decimal(pi);
|
||||||
|
@ -4777,6 +4777,8 @@
|
|||||||
// Create and configure initial Decimal constructor.
|
// Create and configure initial Decimal constructor.
|
||||||
Decimal = clone(Decimal);
|
Decimal = clone(Decimal);
|
||||||
|
|
||||||
|
Decimal['default'] = Decimal.Decimal = Decimal;
|
||||||
|
|
||||||
// Create the internal constants from their string values.
|
// Create the internal constants from their string values.
|
||||||
LN10 = new Decimal(LN10);
|
LN10 = new Decimal(LN10);
|
||||||
PI = new Decimal(PI);
|
PI = new Decimal(PI);
|
||||||
@ -4793,7 +4795,7 @@
|
|||||||
|
|
||||||
// Node and other environments that support module.exports.
|
// Node and other environments that support module.exports.
|
||||||
} else if (typeof module != 'undefined' && module.exports) {
|
} else if (typeof module != 'undefined' && module.exports) {
|
||||||
module.exports = Decimal['default'] = Decimal.Decimal = Decimal;
|
module.exports = Decimal;
|
||||||
|
|
||||||
// Browser.
|
// Browser.
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user