And it's due to this expression:
var numeral = typeof window !== 'undefined' ? this.numeral : require('../numeral')
typeof window !== 'undefined' returns true but there is no this.numeral (as there should not be any because WebPack like browserify bases on module systems - not global window object).
To make it work it needs a little change like:
typeof window !== 'undefined' && window.numeral ? window.numeral…
Or change this condition to check for module systems?
Should look somehow like:
(typeof module !== 'undefined' && module.exports) || (typeof define === 'function' && define.amd) ? require('../numeral') : this.numeral
Is fixed with 2.0.1. Thanks
Most helpful comment
Is fixed with 2.0.1. Thanks