Skip to content

Circular dependency of build #1007

@Juansasa

Description

@Juansasa

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?

express proxy middleware

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions