- 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>
5 lines
295 B
JavaScript
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;
|