Skip to content

Is there a way to introduce alias anywhere in the build lifecycle, other than config? #46

Open
@moo3

Description

@moo3

Some of my module may import a manifest which will have list of libraries that are available to be use for the app. My intent is to create a namespace so that app can assume a pattern to access the imported code.

I am looking to somehow inject alias but after reviewing ResolverFactory looks like AliasPlugin is all registered, for respective alias' and done by the time I get handle to the external code. Hence, I wonder if there is a Webpack way to apply AliasPlugin during lifecycle. If not, I will have to some script to obtain and construct the alias prior to Webpack process.

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