-
-
Notifications
You must be signed in to change notification settings - Fork 595
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
4 changed files
with
37 additions
and
10 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
packages/rspack-test-tools/tests/configCases/cache/issues-6381/a/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 @@ | ||
export default 1; |
5 changes: 5 additions & 0 deletions
5
packages/rspack-test-tools/tests/configCases/cache/issues-6381/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,5 @@ | ||
const a = "a"; | ||
import(`./a/${a}.js`); | ||
it("should work when snapshot.module or snapshot.resolve only set { timestamp: true }", () => { | ||
expect(require("./a/a").default).toBe(1); | ||
}); |
11 changes: 11 additions & 0 deletions
11
packages/rspack-test-tools/tests/configCases/cache/issues-6381/webpack.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
module.exports = { | ||
cache: true, | ||
snapshot: { | ||
module: { | ||
timestamp: true, | ||
}, | ||
resolve: { | ||
timestamp: true, | ||
}, | ||
}, | ||
}; |
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