Skip to content

Does not preserve import.meta #5

@shgysk8zer0

Description

@shgysk8zer0

I am importing HTML for customElements in my JavaScript using:

fetch(new URL('template.html', import.meta.url).then(...);

Unfortunately, this is somehow being transformed to a URL for my local directory.

When importing, it will need to set something like

import.meta = {url: theUrlForScriptBeingImported};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions