Add additional bundle grouping options
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 171
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Description
This issue is a:
- Bug
- [ x] Feature suggestion
- Documentation issue
- Other (Please Specify)
Environment
| Question | Answer |
|---|---|
| Magento version | 2.x |
Description
Let me preface this by saying I'm not 100% sure on this, but this is my understanding of the situation:
Currently, any module used in more than one page gets added to the single "shared" bundle. However, this might end up with modules used only on the PDP and PLP (for example) being loaded on every page.
I'm sure it wouldn't be simple to implement, but it would be useful to be able to produce additional bundles, such as a "catalog" bundle for modules common to PDP and PLP, a "shipping" bundle for modules common to cart and checkout, etc.
Expected result:
"shared" bundle reduced in size, with additional bundles for common functionally. In theory, this would provide a more optimal set of modules for each page.
Possible solutions:
Either allow the user to link pages, or work from a pre-defined set of linked pages.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by locating the bundle-generation and page-grouping entry points in the repository, then determine how shared modules are selected. Done means supporting additional linked or predefined page groups that produce smaller shared output and bundles for common functionality.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100