rstackjs / rstackjs/html-rspack-plugin

Shared chunks are included multiple times

Open
#51 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
19
Forks
4
Avg merge
6h 44m
Merged PRs (30d)
11

Description

Current behaviour 💣

All the shared chunks are included multiple times as scripts in the output html page

Expected behaviour ☀️

Each chunk is included only once

Reproduction Example 👾

https://github.com/flipatlas/rspack-repro-html-plugin-broken-chunks/tree/main

You can see that runtime.js for example has been included twice in rspack-dist/index.html but only once in webpack-html/index.html

Environment 🖥

Same as in repro

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start with the linked reproduction and compare rspack-dist/index.html with webpack-html/index.html, focusing on the duplicated runtime.js script and other shared chunks. Trace the HTML generation path from the reproduction, then verify that each shared chunk appears only once in the generated output.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.