Question : Can a relative path be the key for resolve.alias ?

I am trying to use resolve.alias for resolving relative modules, like

 require('./moduleA')

So my config looks like this :

{
    resolve : {
       alias : { 
           moduleA$ : 'path/to/replacement/module' 
      } 
   }
}

This doesnt seem to work.
But if require contains a module name like :

 require('moduleA')

This works

Is there support for relative modules in require?

Thanks

Author: Fantashit

1 thought on “Question : Can a relative path be the key for resolve.alias ?

Comments are closed.