1
0
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:
Michael Mclaughlin 2016-11-09 23:41:31 +00:00
parent e48bddf45a
commit 4df9158a1a

View File

@ -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 {