Allows passing the moment constructor function to extendMoment imported like follows: import moment from 'moment'; as an alternative to import * as moment from 'moment'; (which doesn't allow to construct a moment instance).
Changing allowSyntheticDefaultImports to true is actually reccomended by the Moment docs found here.
Allows passing the
moment
constructor function to extendMoment imported like follows:import moment from 'moment';
as an alternative toimport * as moment from 'moment';
(which doesn't allow to construct a moment instance). ChangingallowSyntheticDefaultImports
totrue
is actually reccomended by the Moment docs found here.