You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But here has a question because the a.js codegen code has b.js chunk id.The rspack enable incremental rebuild by default. We will update b.js and b.js module should expected update at hmr, but sometimes the chunk id which includes b.js could has change, but the a.js codegen not update chunk id, because we expect the a.js codegen result should be reused.
So rspack into a runtime which called __webpack_require__.el, the example like this.
The codegen code will always same at hmr, because it will not deply on chunk id of ./b.js,if the chunk id has change only changed the runtime code of __webpack_require__.el.
to be discussedRspack team would discuss these issues per week
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Webpack will generate runtime code with dynamic import like this.
But here has a question because the
a.js
codegen code hasb.js
chunk id.The rspack enable incremental rebuild by default. We will updateb.js
andb.js
module should expected update at hmr, but sometimes the chunk id which includesb.js
could has change, but thea.js
codegen not update chunk id, because we expect thea.js
codegen result should be reused.So rspack into a runtime which called
__webpack_require__.el
, the example like this.The codegen code will always same at hmr, because it will not deply on chunk id of
./b.js
,if the chunk id has change only changed the runtime code of__webpack_require__.el
.Beta Was this translation helpful? Give feedback.
All reactions