Astro warning on big chunks

Open
#3,988 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
Half a day
Newbie friendliness
50/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
vite
Domain
build-system

Research direction

The warning comes from the Vite build of the Astro docs site, so start with that build configuration and the chunk settings the warning names: build.chunkSizeWarningLimit and build.rolldownOptions.output.codeSplitting. Reproduce by running the docs build and checking for the 'chunks are larger than 500 kB' message. Done means the warning is gone, or the issue records why the large chunks are acceptable and the limit is adjusted to match.

Written by the indexing model from the issue text.

Description

🐞 bug 📖 documentation
Prerequisites
Describe the issue

When building the docs with Astro we have the following warning:

15:56:09 [WARN] [vite] [plugin builtin:vite-reporter] 
(!) Some chunks are larger than 500 kB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rolldownOptions.output.codeSplitting to improve chunking: https://rolldown.rs/reference/OutputOptions.codeSplitting
- Adjust chunk size limit for this warning via build.chunkSizeWarningLimit."

We should investigate

Any information that could help to resolve the issue. (window.navigator.userAgent)

No response

What version of the documentation are you using?

v1.6.0

Dominant language
CSS
Stars
227
Forks
62
Avg merge
1d 4h
Merged PRs (30d)
18

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Orange-OpenSource/Orange-Boosted-Bootstrap

All issues in Orange-OpenSource/Orange-Boosted-Bootstrap

Similar issues

More Build System issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.