Skip to content

chore/smaller bundles#5671

Merged
juliusknorr merged 3 commits into
mainfrom
chore/smaller-bundles
May 20, 2026
Merged

chore/smaller bundles#5671
juliusknorr merged 3 commits into
mainfrom
chore/smaller-bundles

Conversation

@max-nextcloud
Copy link
Copy Markdown
Contributor

@max-nextcloud max-nextcloud commented May 18, 2026

  • chore(config): use ES2020 for typescript modules
  • chore(import): use async import for showError
  • chore(import): from @nextcloud/vue functions

This allows us to use async imports

Signed-off-by: Max <max@nextcloud.com>
`buildInCode` is imported from `viewer.js`
which is loaded in a lot of places.

So let us keep it small (100k instead of 700k).

Signed-off-by: Max <max@nextcloud.com>
The corresponding chunks are much smaller than NcRichText.

Reduces `references` file size from 1M to < 500k.

Signed-off-by: Max <max@nextcloud.com>
@juliusknorr juliusknorr merged commit 6ca0a24 into main May 20, 2026
48 checks passed
@juliusknorr juliusknorr deleted the chore/smaller-bundles branch May 20, 2026 12:34
@juliusknorr juliusknorr added enhancement New feature or request performance 🚀 labels May 20, 2026
@juliusknorr
Copy link
Copy Markdown
Member

/backport to stable34

@juliusknorr
Copy link
Copy Markdown
Member

/backport to stable33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request performance 🚀

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants