diff options
author | Mike Greiling <mike@pixelcog.com> | 2017-05-16 23:52:40 +0300 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2017-05-16 23:52:40 +0300 |
commit | 5bd549187aa68604d320e3d0c1a51ee4ed34c0e3 (patch) | |
tree | 4f121959a46a895d67963919f549507947a305a5 /app/assets/javascripts/lib/utils/datetime_utility.js | |
parent | f5ad1dcbf88dc69254fe86be2fd6b20fead308c0 (diff) |
update remaining uses of CJS syntax to ES module syntax
Diffstat (limited to 'app/assets/javascripts/lib/utils/datetime_utility.js')
-rw-r--r-- | app/assets/javascripts/lib/utils/datetime_utility.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/assets/javascripts/lib/utils/datetime_utility.js b/app/assets/javascripts/lib/utils/datetime_utility.js index 82dcbdc26c8..566b05628c0 100644 --- a/app/assets/javascripts/lib/utils/datetime_utility.js +++ b/app/assets/javascripts/lib/utils/datetime_utility.js @@ -1,9 +1,10 @@ /* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, no-param-reassign, no-cond-assign, comma-dangle, no-unused-expressions, prefer-template, max-len */ -/* global timeago */ -/* global dateFormat */ -window.timeago = require('timeago.js'); -window.dateFormat = require('vendor/date.format'); +import timeago from 'timeago.js'; +import dateFormat from 'vendor/date.format'; + +window.timeago = timeago; +window.dateFormat = dateFormat; (function() { (function(w) { |