Skip to content

How do I get the module's imported parent from an ESM module? #1476

@dead-claudia

Description

@dead-claudia

In the docs, it makes no mention of the parent URL. I would like this, for the sake of resolving a module name from a query parameter. (It would make my module much easier to use.) Is it possible to retrieve the parent URL from the child, and if so, how?

Also, while I'm at it, how are URLs tested for equivalence WRT caching? Are hashes included, or only queries?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions