Closed mittster closed 2 years ago
In CommonJS I'd do:
var JSONbigNative = require('json-bigint')({ useNativeBigInt: true });
What is the ES6 syntax equivalent? This is not working:
import * as JSONBigIntWrapper from 'json-bigint'; const JSONBigInt = JSONBigIntWrapper({useNativeBigInt: true});
as it complains that JSONBigIntWrapper is not a function.
In CommonJS I'd do:
var JSONbigNative = require('json-bigint')({ useNativeBigInt: true });
What is the ES6 syntax equivalent? This is not working:
as it complains that JSONBigIntWrapper is not a function.