The following example will only work if some-module is a Node module and will not work for modules loaded by the Webpack plugin.
How can I use my own Webpack ( enhanced-resolve ) logic to resolve module paths in config?
In my case, it was a bower-webpack-plugin , but I think it should work the same with any ResolverPlugin
var BowerWebpackPlugin = require("bower-webpack-plugin"); module.exports = { ... module: { plugins: [new BowerWebpackPlugin()], loaders: [ {
estus
source share