-
-
Notifications
You must be signed in to change notification settings - Fork 623
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: optimize diff test case (#4950)
* chore: fix diff stats error * chore: disable webpack concatnationModules * chore: disable optimization mangle exports * chore: ignore block statement and swc helpers path * chore: ignore object property sequence * chore: css local ident file path name * chore: css local ident file path name * chore: css local ident file path name * chore: css local ident file path name * chore: css local ident file path name --------- Co-authored-by: LingyuCoder <--global>
- Loading branch information
1 parent
171703c
commit 3bc9969
Showing
13 changed files
with
194 additions
and
67 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
4 changes: 3 additions & 1 deletion
4
packages/rspack-test-tools/src/compare/replace-module-argument.ts
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,3 +1,5 @@ | ||
export function replaceModuleArgument(raw: string) { | ||
return raw.trim().replace(/^\(function \([\w_,\s]+\) {/, "(function () {"); | ||
return raw | ||
.trim() | ||
.replace(/^\(function\s?\([\w_,\s]+\)\s?{/, "(function () {"); | ||
} |
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.