seitime-frappe/frappe/public/js/lib/moment.js
marination 3f6eb5d99d fix: Load moment and bind to window from new file
- Introduce new file in `/lib` to import moment and bind to window
- Use new lib file to load moment in web bundle and libs bundle (desk)

Co-authored-by: Suraj Shetty <surajshetty3416@gmail.com>
2022-02-02 20:43:01 +05:30

5 lines
295 B
JavaScript

// This file is used to make sure that `moment` is bound to the window
// before the bundle finishes loading, due to imports (datetime.js) in the bundle
// that depend on `moment`.
import momentTimezone from "moment-timezone/builds/moment-timezone-with-data.js";
window.moment = momentTimezone;