gentooboontoo / js-quantities

JavaScript library for quantity calculation and unit conversion
http://gentooboontoo.github.io/js-quantities/
MIT License
396 stars 102 forks source link

v1.7.1 is a breaking change when used with webpack #91

Closed zbjornson closed 6 years ago

zbjornson commented 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>}.

mxtommy commented 6 years ago

I hit this issue too. Importing it into an Angluar project, now getting "Qty.swiftConverter is not a function" whereas before it was working.

gentooboontoo commented 6 years ago

Reverted. Sorry for the breakage.