Swap Moment for date-fns and save 300KB
This commit is contained in:
parent
7cb4d5a364
commit
081163f5a3
@ -13,11 +13,11 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"css-loader": "^0.28.7",
|
||||
"date-fns": "~1.29.0",
|
||||
"domvm": "~3.2.1",
|
||||
"exif-parser": "~0.1.9",
|
||||
"extract-text-webpack-plugin": "^3.0.2",
|
||||
"frptools": "3.0.1",
|
||||
"moment": "~2.19.3",
|
||||
"pica": "~2.0.8",
|
||||
"pouchdb-adapter-http": "~6.3.4",
|
||||
"pouchdb-adapter-idb": "~6.3.4",
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import * as moment from 'moment';
|
||||
import { format } from 'date-fns';
|
||||
import { prop, computed, container } from 'frptools';
|
||||
|
||||
import {
|
||||
@ -43,7 +43,7 @@ export function AllImagesView(vm, params, key, { appbar }) {
|
||||
const res = Object.entries(sectionMap).reduce(
|
||||
(acc, [date, sectionImages]) =>
|
||||
Object.assign(acc, {
|
||||
[moment(date).format('LL')]: sectionImages
|
||||
[format(date, 'MMMM D, YYYY')]: sectionImages
|
||||
}),
|
||||
{}
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user