Merge pull request #1167 from weinshel/decimaljs-import

Change decimal.js import
This commit is contained in:
Jos de Jong 2018-07-14 10:16:43 +02:00 committed by GitHub
commit 4e38cf8d5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
'use strict'
const Decimal = require('decimal.js/decimal.js') // make sure to pick the es5 version
import Decimal from 'decimal.js'
function factory (type, config, load, typed, math) {
const BigNumber = Decimal.clone({precision: config.precision})