Checks
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 + typescript
Expected behavior (be clear and concise)
More consistent dist import termination
How is http-proxy-middleware used in your project?
What 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.2
Additional context (optional)
No response
Checks
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.jsStep-by-step reproduction instructions
Expected behavior (be clear and concise)
More consistent
distimport terminationHow is http-proxy-middleware used in your project?
What http-proxy-middleware configuration are you using?
What OS/version and node/version are you seeing the problem?
Additional context (optional)
No response