Skip to content

Replace globalPreload #147

Closed
Closed
@JakobJingleheimer

Description

@JakobJingleheimer

This hook is extremely confusing, even for maintainers.

The replacement needs to address:

Assuming there is 1 loader worker.

Spit-balling ideas:

  • expose a message port on node:module
  • return a message port from register()

Will a message port need to be refreshed?

@giltayar,I would be very interested in your thoughts (or even a design proposal) for this, especially because you recently handled this in testdouble, so the pain is fresh 😅

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