Skip to content

"resolve.mainFields"-like support #91

Open
@indexzero

Description

@indexzero

Was deep in the bowels of a large webpack.config.js file and came across a challenge that this package seems perfect for solving – with one kinda catch.

That is: nearly all of the time I want to resolve against "module", which I can believe is possible this way after reading the docs:

resolve.sync('@scope/my-module', { browser: 'module' });

However, in the absence of "module" I would like to fall-back to "browser". This is handled in webpack land as resolve.mainFields.

Is there interest in this feature? Does it already exist and I overlooked it in the code?

p.s. long-time no speak. Hope you are well.

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