this repo has no description

Merge branch 'develop' of github.com:moonlight-mod/moonlight into develop

Changed files
+21
.vscode
packages
core
src
+14
.vscode/tasks.json
···
···
+
{
+
"version": "2.0.0",
+
"tasks": [
+
{
+
"label": "build",
+
"type": "shell",
+
"command": "pnpm run build",
+
"group": {
+
"kind": "build",
+
"isDefault": true
+
}
+
}
+
]
+
}
+7
packages/core/src/patch.ts
···
replace.type === undefined ||
replace.type === PatchReplaceType.Normal
) {
// tsc fails to detect the overloads for this, so I'll just do this
// Verbose, but it works
let replaced;
···
replace.type === undefined ||
replace.type === PatchReplaceType.Normal
) {
+
// Add support for \i to match rspack's minified names
+
if (typeof replace.match !== "string") {
+
replace.match = new RegExp(
+
replace.match.source.replace(/\\i/g, "[A-Za-z_$][\\w$]*"),
+
replace.match.flags
+
);
+
}
// tsc fails to detect the overloads for this, so I'll just do this
// Verbose, but it works
let replaced;