UNPKG

json-bignumber

Version:

JSONBigNumber.parse/stringify handling **all** JSON numbers using BigNumber. Based on Douglas Crockford [JSON.js](https://github.com/douglascrockford/JSON-js) package and [bignumber.js](https://github.com/MikeMcl/bignumber.js) library.

22 lines (21 loc) 585 B
var path = require("path"); module.exports = { mode: "production", entry: "./src/JSONBigNumber.js", output: { filename: "JSONBigNumber.min.js", path: path.resolve(__dirname, "dist"), library: "JSONBigNumber", libraryTarget: "umd", // prevent error: `Uncaught ReferenceError: self is not define` globalObject: 'this' }, externals: { "bignumber.js": { commonjs: "bignumber.js", commonjs2: "bignumber.js", amd: "bignumber.js", root: "BigNumber" } } };