Skip to content

Remove dependency on jsdom (make it a peer dependency instead) #8775

Closed

Description

@jogibear9988

Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

JSDom is not needed in browser environments, but is still added cause the package json lists it as a dependency.
This is a problem if I want to build an electron app, cause it needs all dependencies, and JSDom then add 100 other ones

Reproduction steps

Stack trace

Screenshots

No response

Browsers

No response

Activity

  1. added
    breaking changeUsed to mark a PR or issue that changes our public APIs.
    and removed
    status: triageIssues awaiting triage by a Blockly team member
    on Feb 21, 2025
  2. cpcallen commented on Feb 21, 2025

    @cpcallen
    Collaborator

    This is something we would like to do but we need to do some planning to make sure it is done correctly; unfortunately we're not going to be able to do this in the immediate future.

  3. changed the title [-]Remove JSdom dependency fro browsers (add it as a peer dependency)[/-] [+]Remove dependency on `jsdom` (make it a peer dependency instead)[/+] on Feb 21, 2025
  4. Entkenntnis commented on May 28, 2025

    @Entkenntnis

    In the mean time, in my project I'm using this override to avoid installing jsdom:

      "overrides": {
        "jsdom": "npm:dry-uninstall"
      }
    

    Hint: first remove blockly, run npm install, then add the override and reinstall blockly, otherwise the lock file is not properly updated

  5. rachel-fenichel commented on Dec 23, 2025

    @rachel-fenichel
    Collaborator

    I'm retagging as triage so we can discuss whether this goes into v13.

  6. moved this from Todo to Done in Blocklyon Mar 17, 2026
  7. added theissue type on Jul 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions