Numeral.js is a key tool for me, utilized in both the viewmodels and occasionally in the HTML of my knockout components.
<div data-bind="text: numeral(totalCurrent()).format('$0,0.00')"></div>
While using webpack to bundle my HTML and JS, everything was running smoothly. However, recently I encountered an error stating 'numeral is not defined' when trying to implement numeral in the HTML markup as shown above.
Interestingly, numeral functions perfectly in the viewmodel JS without any issues.
Curious if anyone has any suggestions on how to resolve this issue?