From 9ae7ca7088e10abcf67ba2356a3637418aeb4f36 Mon Sep 17 00:00:00 2001 From: Michael Mclaughlin Date: Sat, 9 Sep 2017 18:50:00 +0100 Subject: [PATCH] Fix import issues --- decimal.es6.js | 2 ++ decimal.js | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/decimal.es6.js b/decimal.es6.js index da50dbe..c855c95 100644 --- a/decimal.es6.js +++ b/decimal.es6.js @@ -4775,6 +4775,8 @@ function trunc(x) { // Create and configure initial Decimal constructor. Decimal = clone(defaults); +Decimal['default'] = Decimal.Decimal = Decimal; + // Create the internal constants from their string values. LN10 = new Decimal(ln10); PI = new Decimal(pi); diff --git a/decimal.js b/decimal.js index 2103dab..3703ea0 100644 --- a/decimal.js +++ b/decimal.js @@ -4777,6 +4777,8 @@ // Create and configure initial Decimal constructor. Decimal = clone(Decimal); + Decimal['default'] = Decimal.Decimal = Decimal; + // Create the internal constants from their string values. LN10 = new Decimal(LN10); PI = new Decimal(PI); @@ -4793,7 +4795,7 @@ // Node and other environments that support module.exports. } else if (typeof module != 'undefined' && module.exports) { - module.exports = Decimal['default'] = Decimal.Decimal = Decimal; + module.exports = Decimal; // Browser. } else {