-
-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(incremental): wrong runtime module when rebuild (#8504)
- Loading branch information
Showing
8 changed files
with
49 additions
and
42 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
1 change: 1 addition & 0 deletions
1
...rspack-test-tools/tests/watchCases/runtime-requirements/entry-runtime-requirements/0/a.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
import "./b"; |
1 change: 1 addition & 0 deletions
1
...rspack-test-tools/tests/watchCases/runtime-requirements/entry-runtime-requirements/0/b.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
global.value = 42; |
11 changes: 11 additions & 0 deletions
11
...ck-test-tools/tests/watchCases/runtime-requirements/entry-runtime-requirements/0/index.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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
it("should have correct result", () => { | ||
import("./a").then(() => { | ||
if (WATCH_STEP === '1') { | ||
expect(global.value).toBe("main"); | ||
expect(__webpack_require__.j).toBe("main"); | ||
} else { | ||
expect(global.value).toBe(42); | ||
expect(__webpack_require__.j).toBe(undefined); | ||
} | ||
}); | ||
}) |
1 change: 1 addition & 0 deletions
1
...rspack-test-tools/tests/watchCases/runtime-requirements/entry-runtime-requirements/1/b.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
global.value = __webpack_runtime_id__; |
1 change: 1 addition & 0 deletions
1
...rspack-test-tools/tests/watchCases/runtime-requirements/entry-runtime-requirements/2/b.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
global.value = 42; |
4a2ac52
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
4a2ac52
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.
📝 Ran ecosystem CI: Open