Skip to content

Circular dependencies breaks rollup and vite builds #22

Closed
@gargakshit

Description

@gargakshit

Initial checklist

Affected packages and versions

7.1.3

Link to runnable example

No response

Steps to reproduce

  1. Use rollup for bundling with this library as a dependency (or a peer dependency)
  2. Build the project and run it in a browser

Expected behavior

It runs

Actual behavior

Rollup (and by extension vite) doesn't bundle circular dependencies properly which results in the app failing during production builds.

Related issue: syntax-tree/mdast-util-to-hast#55

Runtime

Other (please specify in steps to reproduce)

Package manager

yarn v1

OS

Windows

Build and bundle tools

Rollup, Vite

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions