Skip to content

Replace sub-module's relative require #48

@stevenvachon

Description

@stevenvachon
.transform("aliasify", { global:true, aliases:{ "whatwg-url/lib/utf8": "utf8-typed" }})

I've even tried using the full path as the key:

.transform("aliasify", { global:true, aliases:{ [require.resolve("whatwg-url/lib/utf8")] : "utf8-typed" }})

The file that I'm trying to alias is, by default, required internally with require("./utf8").

Instead, the above aliases function as if being ignored.

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