`sockIntegration: 'whm'` may inject `webpack-hot-middleware/client` twice
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 52/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
Start by tracing the sockIntegration: 'whm' handling and compare it with the prior-art implementation linked in the issue. Reproduce the rspack.config.js scenario with an explicit webpack-hot-middleware/client entry, then verify that the generated bundle contains only one client entry.
索引モデルが issue の本文から書いたものです。
説明
If end-user provide webpack-hot-middleware/client explicitly in the entry. this plugin should skip to inject it.
Scenario
// `rspack.config.js`
export default {
// ...
entry: {
application: [
'./src/app.js'
'webpack-hot-middleware/client?overlay=false&quiet=true',
]
},
// ...
}
In this case, the output bundle be like below
// ...
function(__webpack_require__) {
var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId) }
__webpack_require__.O(0, ["common",], function() {
return __webpack_exec__("./node_modules/@rspack/plugin-react-refresh/client/reactRefreshEntry.js"),
__webpack_exec__("./node_modules/webpack-hot-middleware/client.js"),
// ^ Injected by this plugin
__webpack_exec__("./node_modules/@rspack/plugin-react-refresh/client/errorOverlayEntry.js"),
__webpack_exec__("./src/app.js"),
__webpack_exec__("./node_modules/webpack-hot-middleware/client.js?overlay=false&quiet=true");
// ^ Provided by the config
});
var __webpack_exports__ = __webpack_require__.O();
}
// ...
Prior art
https://github.com/pmmmwh/react-refresh-webpack-plugin/blob/main/lib/index.js#L82-L98
- 主要言語
- TypeScript
- スター
- 20
- フォーク
- 13
- 平均マージ
- 2時間 55分
- マージ済み PR(30日)
- 6
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
rstackjs/rspack-plugin-react-refresh のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 18/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 38/100
-
Dependency Dashboard オープン
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
rstackjs/rspack-plugin-react-refresh の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
mksglu/context-mode#1200 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
jaegertracing/jaeger-ui#4506 ·
-
area:desktop area:ui bug platform:macos
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
anthropics/claude-code#96687 ·
-
good first issue
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
AOSSIE-Org/DebateAI#582 · コメント 2 件 ·