Skip to content

Circular dependencies index and standalone pointing to each other #69

@micksatana

Description

@micksatana

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the issue has not already been raised

Issue

pnpm helps in detecting circular dependencies. This is what it found.

node_modules/.pnpm/@[email protected]/node_modules/@fastify/fast-json-stringify-compiler/index.js -> node_modules/.pnpm/@[email protected]/node_modules/@fastify/fast-json-stringify-compiler/standalone.js -> node_modules/.pnpm/@[email protected]/node_modules/@fastify/fast-json-stringify-compiler/index.js

Both files depending on each other; index.js requires standalone.js and vice versa. This can be fixed by moving the functions from the index.js to the standalone.js. Then require in one direction only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions