Skip to content

Commit 3d021e0

Browse files
committed
fix: esm issues with http-proxy-middleware via pnpm patch
1 parent 211330b commit 3d021e0

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,10 @@
5858
},
5959
"eslintConfig": {
6060
"extends": "@antfu"
61+
},
62+
"pnpm": {
63+
"patchedDependencies": {
64+
65+
}
6166
}
6267
}

patches/[email protected]

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
diff --git a/dist/debug.js b/dist/debug.js
2+
index 31f4e4bf1b81f0914d29e8ef839eab9dfd9d3fb9..b4f9db93945384f852f70fe9fccee0c480289ab9 100644
3+
--- a/dist/debug.js
4+
+++ b/dist/debug.js
5+
@@ -5,4 +5,4 @@ const createDebug = require("debug");
6+
/**
7+
* Debug instance with the given namespace: http-proxy-middleware
8+
*/
9+
-exports.Debug = createDebug('http-proxy-middleware');
10+
+exports.Debug = Object.assign(createDebug('http-proxy-middleware'), {extend: ()=>{return ()=> {}}});

pnpm-lock.yaml

Lines changed: 8 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)