Skip to content

Instantly share code, notes, and snippets.

View Jungzl's full-sized avatar

Jungzl

View GitHub Profile
@Jungzl
Jungzl / unplugin@1.5.1.patch
Last active December 22, 2023 02:14
Put this file under PROJECT_ROOT/patches, set "pnpm":{ "patchedDependencies": { "unplugin@1.5.1": "patches/unplugin@1.5.1.patch" }} in package.json, then rerun `pnpm install`
diff --git a/dist/index.d.mts b/dist/index.d.mts
index 524216f7a6d07c6fb1000cbfaf864087c18c07d6..5f0c400b14c4d53032071963cf1844a2c77b8a1b 100644
--- a/dist/index.d.mts
+++ b/dist/index.d.mts
@@ -116,6 +116,11 @@ declare module 'webpack' {
$unpluginContext: Record<string, ResolvedUnpluginOptions>;
}
}
+declare module '@rspack/core' {
+ interface Compiler {