I\'m trying to make a bundle with webpack. I have a bit complex dependency: some components require other ones that are located in some /home/.../
folder.
@mqklin: You needed this work-around using, ".map(require.resolve)", because you did not exclude /node_modules/ in your loaders. The format below should work:
loaders: [
{
test: [/\.js$/, /\.es6$/],
exclude: /node_modules/,
loader: 'babel-loader',
query: {
cacheDirectory: true,
presets: ['react', 'es2015'],
}
}
]