Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Should alias respect relative imports? #34

@gaearon

Description

@gaearon

I bumped into an issue using this plugin for React.

If I alias some-package/module to a shim, direct imports of some-package/module are shimmed correctly.

However, I also assumed that ./module import from some-package/other-module would also get shimmed. This was not the case.

I’m curious if you consider this a bug or if it works as designed. Perhaps our need to shim a particular module (no matter how it’s imported) would be better satisfied by a different plugin.

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