Skip to content

Commit

Permalink
Modularize: Export calendar() without HebrewCalendar
Browse files Browse the repository at this point in the history
This only has modest savings, because most of the code comes from this very function
  • Loading branch information
SLaks committed Nov 3, 2024
1 parent 6d72ee3 commit 22d142c
Show file tree
Hide file tree
Showing 4 changed files with 680 additions and 578 deletions.
4 changes: 2 additions & 2 deletions size-demo/parshiyot.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {HebrewCalendar} from '../dist/es/index';
import {calendar} from '../dist/es/calendar';

const events = HebrewCalendar.calendar({
const events = calendar({
year: new Date().getFullYear() - 1,
numYears: 2,
sedrot: true,
Expand Down
4 changes: 2 additions & 2 deletions size-demo/sizes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

- `getHoliday.mjs`: 129 kB
- `getHoliday.min.mjs`: 41.9 kB
- `parshiyot.mjs`: 407 kB
- `parshiyot.min.mjs`: 144 kB
- `parshiyot.mjs`: 385 kB
- `parshiyot.min.mjs`: 140 kB
- `sedra.mjs`: 85.7 kB
- `sedra.min.mjs`: 29.9 kB
- `tachanun.mjs`: 55.5 kB
Expand Down
Loading

0 comments on commit 22d142c

Please sign in to comment.