Closed zbjornson closed 6 years ago
v1.7.1 added a "module" field to package.json. Webpack will use that preferentially, which means require("js-quantities") returns an object like {default: <what you'd get from requiring v1.7.0>}.
"module"
require("js-quantities")
{default: <what you'd get from requiring v1.7.0>}
I hit this issue too. Importing it into an Angluar project, now getting "Qty.swiftConverter is not a function" whereas before it was working.
Reverted. Sorry for the breakage.
v1.7.1 added a
"module"
field to package.json. Webpack will use that preferentially, which meansrequire("js-quantities")
returns an object like{default: <what you'd get from requiring v1.7.0>}
.