tapable icon indicating copy to clipboard operation
tapable copied to clipboard

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

Open moo3 opened this issue 8 years ago • 0 comments

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.

moo3 avatar Feb 01 '18 16:02 moo3