Created
July 30, 2017 19:57
-
-
Save yyolk/a5872bbbeed54285449b98ca2676c9a7 to your computer and use it in GitHub Desktop.
dont pollute the namespace - just loads 'moment'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const moment = (function() { | |
const Moment = require('moment-timezone'); | |
const MomentRange = require('moment-range'); | |
return MomentRange.extendMoment(Moment); | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment