spatie / vue-table-component

A straight to the point Vue component to display tables
http://vue-table-component.spatie.be
MIT License
588 stars 149 forks source link

[Improvement] Remove dependency on moment #148

Closed abhipanda closed 6 years ago

abhipanda commented 6 years ago

Momentjs had its moment now its time to move on to smaller and tree shaking compatible library like https://date-fns.org/

Evidently the only code which is being used is format

   if (dataType.startsWith('date')) {
            const format  = dataType.replace('date:', '');
           return moment(value, format).format('YYYYMMDDHHmmss');
    }

Its a drop in replacement with 500KB savings :)

spatie-bot commented 6 years ago

Dear contributor,

because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.