Closed maximeSurmontGH closed 1 year ago
I need to reduce the lib size (1.1MB) and I would like to know if there is a way to make it more lightweight ?
From this issue, I tried using date-holiday-parser (instead of date-holiday) with a custom json data but it made any improvement (still 1.1MB).
// date.utils.ts import Holidays from 'date-holidays-parser'; const customHolidayJsonData = { holidays: { FR: { names: { fr: 'France', en: 'France', }, dayoff: 'sunday', zones: ['Europe/Paris'], langs: ['fr'], days: { '01-01': { _name: '01-01', }, }, }, }, names: { '01-01': { name: { en: "New Year's Day", fr: 'Nouvel An', }, }, }, }; const holiday = new Holidays(customHolidayJsonData); holiday.init('FR');
Is there a way of improvement / am I doing something wrong ?
I need to reduce the lib size (1.1MB) and I would like to know if there is a way to make it more lightweight ?
From this issue, I tried using date-holiday-parser (instead of date-holiday) with a custom json data but it made any improvement (still 1.1MB).
Is there a way of improvement / am I doing something wrong ?