-
Notifications
You must be signed in to change notification settings - Fork 875
Closed
Description
Checks
- I understand project setup issues should be asked on StackOverflow or in GitHub Discussions.
- I updated to latest
http-proxy-middleware.
Describe the bug (be clear and concise)
Got this error while compiling with Rollup
node_modules/http-proxy-middleware/dist/index.js -> node_modules/http-proxy-middleware/dist/legacy/index.js -> node_modules/http-proxy-middleware/dist/legacy/public.js -> node_modules/http-proxy-middleware/dist/legacy/create-proxy-middleware.js -> node_modules/http-proxy-middleware/dist/index.js
Step-by-step reproduction instructions
Build with rollup + typescriptExpected behavior (be clear and concise)
More consistent dist import termination
How is http-proxy-middleware used in your project?
express proxy middlewareWhat http-proxy-middleware configuration are you using?
server.use(
createProxyMiddleware({
pathFilter: "/api",
changeOrigin: true,
secure: false,
target: process.env.API,
pathRewrite: {
"^/api/": "/internal/endpoint/",
},
logger: console,
}),
);What OS/version and node/version are you seeing the problem?
Mac OSX 14.4.1
Node v21.7.2Additional context (optional)
No response
Metadata
Metadata
Assignees
Labels
No labels