-
-
Notifications
You must be signed in to change notification settings - Fork 632
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
253 additions
and
35 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
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
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
2 changes: 2 additions & 0 deletions
2
.../rspack-test-tools/tests/watchCases/build-chunk-graph/skip-building-chunk-graph/0/deep.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,2 @@ | ||
export const v1 = 42; | ||
export const v2 = 42 |
9 changes: 9 additions & 0 deletions
9
...rspack-test-tools/tests/watchCases/build-chunk-graph/skip-building-chunk-graph/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,9 @@ | ||
import lib from "./lib" | ||
import value from './value' | ||
import { v1 } from './re-exports' | ||
|
||
it("should have correct result", () => { | ||
expect(lib).toBe(42); | ||
expect(value).toBe(42); | ||
expect(v1).toBe(42); | ||
}); |
3 changes: 3 additions & 0 deletions
3
...s/rspack-test-tools/tests/watchCases/build-chunk-graph/skip-building-chunk-graph/0/lib.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,3 @@ | ||
// use eval to add sideEffects to current module | ||
eval('') | ||
export default 42; |
2 changes: 2 additions & 0 deletions
2
...k-test-tools/tests/watchCases/build-chunk-graph/skip-building-chunk-graph/0/re-exports.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,2 @@ | ||
export * from "./deep" | ||
export const direct = 42 |
3 changes: 3 additions & 0 deletions
3
...rspack-test-tools/tests/watchCases/build-chunk-graph/skip-building-chunk-graph/0/value.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,3 @@ | ||
// use eval to add sideEffects to current module | ||
eval('') | ||
export default 42; |
11 changes: 11 additions & 0 deletions
11
...rspack-test-tools/tests/watchCases/build-chunk-graph/skip-building-chunk-graph/1/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 @@ | ||
import lib from "./lib" | ||
import value from './value' | ||
import { v1 } from './re-exports' | ||
|
||
it("should have correct result", () => { | ||
// add specifier dependency should not rebuild chunk graph | ||
expect(lib).toBe(42); | ||
expect(lib).toBe(42); | ||
expect(value).toBe(42); | ||
expect(v1).toBe(42); | ||
}); |
10 changes: 10 additions & 0 deletions
10
...rspack-test-tools/tests/watchCases/build-chunk-graph/skip-building-chunk-graph/2/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,10 @@ | ||
// change import order should rebuild chunk graph | ||
import value from './value' | ||
import lib from "./lib" | ||
import { v1 } from './re-exports' | ||
|
||
it("should have correct result", () => { | ||
expect(lib).toBe(42); | ||
expect(value).toBe(42); | ||
expect(v1).toBe(42); | ||
}); |
11 changes: 11 additions & 0 deletions
11
...rspack-test-tools/tests/watchCases/build-chunk-graph/skip-building-chunk-graph/3/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 @@ | ||
import value from './value' | ||
import lib from "./lib" | ||
// import member from same modules should not rebuild chunk graph | ||
import { v1, v2 } from './re-exports' | ||
|
||
it("should have correct result", () => { | ||
expect(lib).toBe(42); | ||
expect(value).toBe(42); | ||
expect(v1).toBe(42); | ||
expect(v2).toBe(42); | ||
}); |
Oops, something went wrong.