Skip to content

Bundle optimizations - #1743

Merged
Arnei merged 1 commit into
opencast:developfrom
Arnei:reduce-bundle-size
Nov 18, 2026
Merged

Arnei merged 1 commit into
opencast:developfrom
Arnei:reduce-bundle-size

Conversation

@Arnei

@Arnei Arnei commented Nov 12, 2026

Copy link
Copy Markdown
Member

Reduce our bundle size through three small dep changes.

  1. Replace lodash with lodash-es, so we only bundle the functions we actually import.

  2. Drop react-device-detect and do the same thing it did ourselves.

  3. Replace luxon with date-fns, which is much smaller.

AI Usage

Used Claude Sonnet to find these optimizations.

@Arnei Arnei added the type:dependencies Pull requests that update a dependency file label Nov 12, 2026
@github-actions

github-actions Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

This pull request is deployed at test.editor.opencast.org/1743/2026-11-18_12-52-35/ .
It might take a few minutes for it to become available.

Reduce our bundle size through three small dep changes.

1. Replace `lodash` with `lodash-es`, so we only bundle the functions
we actually import

2. Drop `react-device-detect` and do the same thing it did ourselves.

3. Replace `luxon` with `date-fns`, which is much smaller

This commit was largely AI generated.
@github-actions github-actions Bot added the status:conflicts Conflicts with another pull request or issue label Nov 18, 2026
@github-actions

Copy link
Copy Markdown

This pull request has conflicts ☹
Please resolve those so we can review the pull request.
Thanks.

@Arnei
Arnei force-pushed the reduce-bundle-size branch from 5ea893e to 0e9d969 Compare November 18, 2026 12:52
@github-actions github-actions Bot removed the status:conflicts Conflicts with another pull request or issue label Nov 18, 2026
@Arnei
Arnei merged commit 0fc5968 into opencast:develop Nov 18, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant