X Tutup
Skip to content

Does it intentionally matches partials? #6

@alexFaunt

Description

@alexFaunt

Hi,

I started to use this to alias 'react' to 'node_modules/preact-compat' but that has the side effect of matching 'react-router' to 'node_modules/preact-compat/-router'

Line 25 matches if the module starts with the alias or not request.indexOf(alias) === 0 an exact match fixes my problem as in request === alias

Or is it intentional that it matches partials too?

Cheers

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

      X Tutup