Skip to content

chore/smaller bundles#5671

Open
max-nextcloud wants to merge 3 commits into
mainfrom
chore/smaller-bundles
Open

chore/smaller bundles#5671
max-nextcloud wants to merge 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant