-
-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update webpack 5.97.1 (#9340)
* chore: bump webpack 5.97.1 * fix: use rspack ignore plugin * chore: ⬆️ update pnpm-lock * feat: align async node with webpack * fix: walkaround tsc error * fix: option builder error * feat: align webpack module chunk loader * chore: ⬆️ update pnpm-lock * feat: add wrong wasm loading type error message * test: update plugin-test snapshot * fix: style unstable * refactor: remove dead code * refactor: todo -> unreachable Co-authored-by: JSerFeng
- Loading branch information
1 parent
4df2004
commit 6f7a16d
Showing
55 changed files
with
686 additions
and
528 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
crates/rspack_plugin_runtime/src/runtime_module/runtime/module_chunk_loading.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
var installChunk = function (data) { | ||
var ids = data.ids; | ||
var modules = data.modules; | ||
var runtime = data.runtime; | ||
var __webpack_ids__ = data.__webpack_ids__; | ||
var __webpack_modules__ = data.__webpack_modules__; | ||
var __webpack_runtime__ = data.__webpack_runtime__; | ||
// add "modules" to the modules object, | ||
// then flag all "ids" as loaded and fire callback | ||
var moduleId, chunkId, i = 0; | ||
for (moduleId in modules) { | ||
if (__webpack_require__.o(modules, moduleId)) { | ||
__webpack_require__.m[moduleId] = modules[moduleId]; | ||
for (moduleId in __webpack_modules__) { | ||
if (__webpack_require__.o(__webpack_modules__, moduleId)) { | ||
__webpack_require__.m[moduleId] = __webpack_modules__[moduleId]; | ||
} | ||
} | ||
if (runtime) runtime(__webpack_require__); | ||
for (; i < ids.length; i++) { | ||
chunkId = ids[i]; | ||
if (__webpack_runtime__) __webpack_runtime__(__webpack_require__); | ||
for (; i < __webpack_ids__.length; i++) { | ||
chunkId = __webpack_ids__[i]; | ||
if (__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) { | ||
installedChunks[chunkId][0](); | ||
} | ||
installedChunks[ids[i]] = 0; | ||
installedChunks[__webpack_ids__[i]] = 0; | ||
} | ||
$WITH_ON_CHUNK_LOAD$ | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
...ests/runtimeDiffCases/chunk-loading/async-wasm-loading#async-node-module/rspack.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
6f7a16d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 Benchmark detail: Open
6f7a16d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📝 Ecosystem CI detail: Open