parcel-bundler / website

🌎 Parcel website
https://parceljs.org
MIT License
351 stars 466 forks source link

Add Manual Shared Bundle Blurb to Code splitting doc #1099

Closed AGawrys closed 8 months ago

AGawrys commented 10 months ago

Adds documentation on how to use the manualSharedBundles config option for the DefaultBundler. Includes some common reasons why a project may benefit from MSB (manual Shared Bundles), as well as a basic example of how to add config to your package.json

This PR should be merged once the Source Bundles Property PR is merged. That PR renames parentAsset to root, the property that specifies what file should be targeted by the assets glob.

It also adds a loadedBy optional config, which allows users to specify bundleRoots that will use this MSB (manual shared bundle)

Notes

Note that "display rich diff" in Github does not support all formatting used, here's a screen grab of what the page will look like:

experimental_msb_blurb
vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
website ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 27, 2024 6:40pm
devongovett commented 8 months ago

Updated to remove loadedBy for now since that PR isn't merged yet, and re-worded a bit for clarity.